Example #1
0
 public static double TanhDerivative(double neuronActivation) => 1 - Math.Pow(Neuron.TanhActivation(neuronActivation), 2);
Example #2
0
            //public static double BinaryCrossEntropyDerivative(double neuronOutput, double expectedOutput) =>  /

            public static double SigmoidDerivative(double neuronActivation) => Neuron.SigmoidActivation(neuronActivation) * (1 - SigmoidDerivative(neuronActivation));