예제 #1
0
 public void TrainOn(NNDataSet innds, int numberofEpochs)
 {
     for (int i = 0; i < numberofEpochs; i++)
     {
         innds.RefreshDataset();
         while (innds.HasMoreExamples())
         {
             NNExample nne = innds.GetExampleAtRandom();
             this.ProcessInput(nne.GetInput());
             Vector error = layer.ErrorVectorFrom(nne.GetTarget());
             this.ProcessError(error);
         }
     }
 }
예제 #2
0
 public Vector Predict(NNExample nne)
 {
     return(this.ProcessInput(nne.GetInput()));
 }