public void CalculateActivationTest(float input, float expected) { float epsilon = 0.0001f; ActivationFunction activation = new SteepenedSigmoid(); float result = activation.CalculateActivation(input); Assert.IsTrue(Math.Abs(result - expected) < epsilon, $"Expected value <{expected}>. Actual <{result}>"); }
private void initalize() { StackSize = 120; SmallBlind = 1; BigBlind = 2; MaxPlayersPerGame = 6; MinPlayersPerGame = 6; TourneysPerNetwork = 100; MaxHandsPerTourney = 200; ActivationFunction = new SteepenedSigmoid(); LogFilename = "handlog.txt"; AnalyzeHands = false; CachedHandsPerGeneration = 100000; }