PHP 7.4.24 Released!


(PECL fann >= 1.0.0)

fann_saveSaves the entire network to a configuration file


fann_save(resource $ann, string $configuration_file): bool

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.

Список параметров


Ресурс (resource) нейронной сети.


The configuration file path.

Возвращаемые значения

Возвращает true в случае успешного выполнения, или false в противном случае.

Смотрите также

  • fann_create_from_file() - Создаёт нейронную сеть с обратным распространением ошибки из конфигурационного файла

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top