public override double fireNeuron(List<NeuronPort> inputs, NeuronPort bias) { double sum = 0; foreach (NeuronPort input in inputs) { sum += 1 / (1 + Math.Exp(input.weightedReading * -1)); } //sum += 1 / (1 + Math.Exp(bias.weightedReading *-1)); return sum; }
public override double fireNeuronDerivative(List<NeuronPort> inputs, NeuronPort bias) { double sum = 0; foreach (NeuronPort input in inputs) { double s = Sigmoid(input.weightedReading); sum += (s * (1 -s)); } //sum += 1 / (1 + Math.Exp(bias.weightedReading *-1)); return sum; }
public override double fireNeuron(List<NeuronPort> inputs, NeuronPort bias) { double sum = 0; foreach (NeuronPort input in inputs) { sum += input.weightedReading; } sum += bias.weightedReading; return sum; }
//Start of Methods public override double fireNeuron(List<NeuronPort> inputs, NeuronPort bias) { double sum = 0; foreach (NeuronPort input in inputs) { sum += input.weightedReading; } sum += offset; if (sum > 0) { return 1; } else { return 0; } }
public void addnewOuput(string label, double weight, double reading) { this.output = new NeuronPort(weight, reading, label); }
public virtual double fireNeuronDerivative(List<NeuronPort> inputs, NeuronPort bias) { throw new NotImplementedException(); }
public virtual double fireNeuron(List<NeuronPort> neuronInputs, NeuronPort bias) { throw new NotImplementedException(); }