Function fann_sys::fann_train_epoch[][src]

pub unsafe extern "C" fn fann_train_epoch(
    ann: *mut fann,
    data: *const fann_train_data
) -> c_float

Train one epoch with a set of training data.

Train one epoch with the training data stored in data. One epoch is where all of the training data is considered exactly once.

This function returns the MSE error as it is calculated either before or during the actual training. This is not the actual MSE after the training epoch, but since calculating this will require to go through the entire training set once more, it is more than adequate to use this value during training.

The training algorithm used by this function is chosen by the fann_set_training_algorithm function.

See also

fann_train_on_data, fann_test_data

This function appears in FANN >= 1.2.0.