PHP.nl

fann_set_callback

fann_set_callback

Sets the callback function for use during training

bool **fann_set_callback** resource $ann callable $callback

Sets the callback function for use during training. It means that it is called from or . fann_train_on_data``fann_train_on_file

ann``callback The supplied callback function takes following parameters:

 `ann``resource``train``resource``fann_train_on_file``max_epochs``epochs_between_reports``desired_error``fann_get_MSE``fann_get_bit_fail``fann_set_train_stop_function``epochs`

The callback should return true. If it returns false, the training will terminate.

fann_train_on_data``fann_train_on_file