fann_sys::fann_save
[−]
[src]
pub unsafe extern fn fann_save(ann: *mut fann, configuration_file: *const c_char) -> c_int
Save the entire network to a configuration file.
The configuration file contains all information about the neural network and enables
fann_create_from_file
to create an exact copy of the neural network and all of the
parameters associated with the neural network.
These three parameters (fann_set_callback
, fann_set_error_log
,
fann_set_user_data
) are NOT saved to the file because they cannot safely be
ported to a different location. Also temporary parameters generated during training
like fann_get_MSE
are not saved.
Return
The function returns 0 on success and -1 on failure.
See also
fann_create_from_file
, fann_save_to_fixed
This function appears in FANN >= 1.0.0.