Exemplo n.º 1
0
        public void TestTanhScaledReversed()
        {
            var f = new ActivationFunctions.Tanh(-.5);

            Assert.AreEqual(Math.Tanh(-.5 * 7), f.GetActivation(7), Delta);
        }
Exemplo n.º 2
0
        public void TestTanhNormal()
        {
            var f = new ActivationFunctions.Tanh(1);

            Assert.AreEqual(Math.Tanh(3), f.GetActivation(3), Delta);
        }
Exemplo n.º 3
0
        public void TestTanhScaled()
        {
            var f = new ActivationFunctions.Tanh(3);

            Assert.AreEqual(Math.Tanh(3 * 5), f.GetActivation(6), Delta);
        }