public void DerviativeProducesCorrectResultNegativeValue(double inputValue, double expectedResult) { var activationFunction = SigmoidActivationFunction.Create(); var derivativeResult = activationFunction.Derivative(inputValue); DoubleAssertionHelpers.AssertWithPrecision(expectedResult, derivativeResult, 10); }
public void ActivateProducesCorrectResultNegativeValue(double activationValue, double expectedResult) { var activationFunction = SigmoidActivationFunction.Create(); var activationResult = activationFunction.Activate(activationValue); DoubleAssertionHelpers.AssertWithPrecision(expectedResult, activationResult, 10); }