Exemple #1
0
 // This is the derivative after modifying the loss function.
 public override double GetActivationSlopeAt(FiringNeuron neuron) => 1;
Exemple #2
0
        public override double GetActivationSlopeAt(FiringNeuron neuron)
        {
            double y = neuron.Output;

            return(y * (1 - y));
        }
Exemple #3
0
        public override double GetActivationSlopeAt(FiringNeuron neuron)
        {
            var tanh = neuron.Output;

            return(1 - tanh * tanh);
        }
Exemple #4
0
 public override double GetActivationSlopeAt(FiringNeuron neuron)
 => neuron.Output * (1 - neuron.Output);
Exemple #5
0
 public override double GetActivationSlopeAt(FiringNeuron neuron) => neuron.TotalInput > 0 ? 1 : .01;
Exemple #6
0
 public abstract double GetActivationSlopeAt(FiringNeuron neuron);