public void trainOn(NNDataSet innds, int numberofEpochs) { for (int i = 0; i < numberofEpochs; i++) { innds.refreshDataset(); while (innds.hasMoreExamples()) { NNExample nne = innds.getExampleAtRandom(); processInput(nne.getInput()); Vector error = layer.errorVectorFrom(nne.getTarget()); processError(error); } } }
public Vector predict(NNExample nne) { return(processInput(nne.getInput())); }
public Vector predict(NNExample nne) { return processInput(nne.getInput()); }