public Neuron(Neuron n) { nrnType = n.getNrnType(); rightVal = n.RightVal; leftVal = n.LeftVal; currentLayer = n.getCurrentLayer(); IndexInLayer = n.getIndexInLayer(); }
private void evalNrnError(Neuron n, int trainingSet) { if (n.getNrnType().Equals(MLPType.output)) { n.Error = n.RightVal - TrainingSets[trainingSet].Output[n.getIndexInLayer()]; //Index OOR here // Not anymore, mouhaha ! >:D } else { throw new MLPException("method MLP.evalNrnError - the neuron is not an output nrn"); } }