void fann_train_on_file_callback(struct fann * ann, char * filename, unsigned int max_epochs, unsigned int epochs_between_reports, float desired_error, int (*callback)(unsigned int epochs, float error));
Trains ann using the data in filename until desired_error is reached, or until max_epochs is surpassed.
This function behaves identically to
fann_train_on_file
, except that
fann_train_on_file_callback
allows you to specify a function to be called every
epochs_between_reports instead of using the default reporting mechanism.
The callback function works as described in
fann_train_on_data_callback
The training algorithm used by this function is chosen by the
fann_set_training_algorithm
function. The default training algorithm is FANN_TRAIN_RPROP
.
This function appears in FANN >= 1.0.5.