// Calculate gradient public double CalculateGradient() { Gradient = ActivationFunctions.SigmoidDerivative(Value); return(Gradient); }