예제 #1
0
        public void ActivationTest()
        {
            SigmoidActivationFunction saf = new SigmoidActivationFunction();

            Assert.AreEqual(0.5, saf.Activation(0.0), 0.00001);
        }
        public void SigmoidActivationFunctionReturnsExpectedActivation()
        {
            const double expected = 0.64565631;

            _activationFunction.Activation(0.6).Should().BeApproximately(expected, 0.00000001d);
        }