Class Trainer


  • public class Trainer
    extends java.lang.Object
    Trains an ANN. Currently only File based training is supported.
    • Constructor Summary

      Constructors 
      Constructor Description
      Trainer​(Fann fann)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static float fann_get_MSE​(com.sun.jna.Pointer ann)  
      protected static void fann_train_on_file​(com.sun.jna.Pointer ann, java.lang.String filename, int max_epochs, int epochs_between_reports, float desired_error)  
      float train​(java.lang.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​(java.lang.String trainingFile,
                           int maxEpochs,
                           int epochsBetweenReports,
                           float desiredError)
      • fann_train_on_file

        protected static void fann_train_on_file​(com.sun.jna.Pointer ann,
                                                 java.lang.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)