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