コード例 #1
0
 public Neuron(Neuron n)
 {
     nrnType      = n.getNrnType();
     rightVal     = n.RightVal;
     leftVal      = n.LeftVal;
     currentLayer = n.getCurrentLayer();
     IndexInLayer = n.getIndexInLayer();
 }
コード例 #2
0
ファイル: MLP.cs プロジェクト: Curiouser/projectMLP
 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");
     }
 }