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); } } }
public Vector Predict(NNExample nne) { return(this.ProcessInput(nne.GetInput())); }