45678910
import tv.floe.metronome.classification.neuralnetworks.activation.Linear; public class InputNeuron extends Neuron { public InputNeuron() { super(new WeightedSum(), new Linear()); }
3233343536373839404142
protected transient double error = 0; public Neuron() { this.inputFunction = new WeightedSum(); this.activationFunction = new Step(); this.inConnections = new ArrayList<Connection>(); this.outConnections = new ArrayList<Connection>();
6465666768697071727374
if (0 == layerIndex) { n = new InputNeuron(); } else { n = new Neuron(new WeightedSum(), new Sigmoid()); } return n;