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

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

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