Ejemplo n.º 1
0
        public void TestScaledReversed()
        {
            var f = new ActivationFunctions.Sigmoid(-5);

            Assert.AreEqual(1 / (1 + Math.Exp(5 * 6)), f.GetActivation(6), Delta);
        }
Ejemplo n.º 2
0
        public void TestNormal()
        {
            var f = new ActivationFunctions.Sigmoid(1);

            Assert.AreEqual(1 / (1 + Math.Exp(-3)), f.GetActivation(3), Delta);
        }
Ejemplo n.º 3
0
        public void TestScaled()
        {
            var f = new ActivationFunctions.Sigmoid(7);

            Assert.AreEqual(1 / (1 + Math.Exp(-7 * 2)), f.GetActivation(2), Delta);
        }