Esempio n. 1
0
        public void ActivationTest()
        {
            var res0 = Activate.Logistic(0);
            var res1 = Activate.ReLU(0);
            var res2 = Activate.Tanh(0);

            Assert.AreEqual(0.5, res0, 1E-4);
            Assert.AreEqual(0, res1, 1E-4);
            Assert.AreEqual(0, res2, 1E-4);
        }