Beispiel #1
0
 public virtual double CalculateValue()
 {
     return(Value = NeuralNetwork.SigmoidFunction(InputSynapses.Sum(a => a.Weight * a.InputNeuron.Value) + Bias));
 }
Beispiel #2
0
 public virtual double CalculateDerivative()
 {
     return(NeuralNetwork.SigmoidDerivative(Value));
 }
Beispiel #3
0
 public Neuron()
 {
     InputSynapses  = new List <Synapse>();
     OutputSynapses = new List <Synapse>();
     Bias           = NeuralNetwork.NextRandom();
 }