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

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

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