Example #1
0
        public void ReluActivationFunctionTrainingReturnsExpectedDerivative()
        {
            const double expected   = 1d;
            var          activation = _activationFunction.Activation(0.6d);

            _activationFunction.Derivative(activation).Should().BeApproximately(expected, 0.00000001d);
        }
Example #2
0
        public double Derivative()
        {
            var activation = Properties.ActivationValue;

            return(_activationFunctionTraining.Derivative(activation));
        }