void fann_train_on_data(struct fann * ann, struct fann_train_data * data, unsigned int max_epochs, unsigned int epochs_between_reports, float desired_error);
Trains annusing datauntil desired_erroris reached, or until max_epochsis surpassed.
This function appears in FANN >= 1.0.0.