com.googlecode.fannj
Class Trainer

java.lang.Object
  extended by com.googlecode.fannj.Trainer

public class Trainer
extends Object

Trains an ANN. Currently only File based training is supported.


Constructor Summary
Trainer(Fann fann)
           
 
Method Summary
protected static float fann_get_MSE(com.sun.jna.Pointer ann)
           
protected static void fann_train_on_file(com.sun.jna.Pointer ann, String filename, int max_epochs, int epochs_between_reports, float desired_error)
           
 float train(String trainingFile, int maxEpochs, int epochsBetweenReports, float desiredError)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trainer

public Trainer(Fann fann)
Method Detail

train

public float train(String trainingFile,
                   int maxEpochs,
                   int epochsBetweenReports,
                   float desiredError)

fann_train_on_file

protected static void fann_train_on_file(com.sun.jna.Pointer ann,
                                         String filename,
                                         int max_epochs,
                                         int epochs_between_reports,
                                         float desired_error)

fann_get_MSE

protected static float fann_get_MSE(com.sun.jna.Pointer ann)