public void TestScaledReversed() { var f = new ActivationFunctions.Sigmoid(-5); Assert.AreEqual(1 / (1 + Math.Exp(5 * 6)), f.GetActivation(6), Delta); }
public void TestNormal() { var f = new ActivationFunctions.Sigmoid(1); Assert.AreEqual(1 / (1 + Math.Exp(-3)), f.GetActivation(3), Delta); }
public void TestScaled() { var f = new ActivationFunctions.Sigmoid(7); Assert.AreEqual(1 / (1 + Math.Exp(-7 * 2)), f.GetActivation(2), Delta); }