array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.fann-save.php', 1 => 'fann_save', ), 'up' => array ( 0 => 'ref.fann.php', 1 => 'Fann Functions', ), 'prev' => array ( 0 => 'function.fann-save-train.php', 1 => 'fann_save_train', ), 'next' => array ( 0 => 'function.fann-scale-input-train-data.php', 1 => 'fann_scale_input_train_data', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/fann/functions/fann-save.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL fann >= 1.0.0)
fann_save — Saves the entire network to a configuration file
Saves 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() is not saved.
ann
Neural network resource.
configuration_file
The configuration file path.