public void TestTanhScaledReversed() { var f = new ActivationFunctions.Tanh(-.5); Assert.AreEqual(Math.Tanh(-.5 * 7), f.GetActivation(7), Delta); }
public void TestTanhNormal() { var f = new ActivationFunctions.Tanh(1); Assert.AreEqual(Math.Tanh(3), f.GetActivation(3), Delta); }
public void TestTanhScaled() { var f = new ActivationFunctions.Tanh(3); Assert.AreEqual(Math.Tanh(3 * 5), f.GetActivation(6), Delta); }