Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<fann_set_scaling_paramsfann_set_train_stop_function>
^Fann FunctionsLast updated: Mon, 26 Oct 2026

fann_set_train_error_function

(PECL fann >= 1.0.0)

fann_set_train_error_function — Sets the error function used during training

Description

function fann_set_train_error_function(resource $ann, int $error_function): bool

Sets the error function used during training.

The error functions are described further in error functions constants.

Parameters

ann

Neural network resource.

error_function

The error function constant

Return Values

Returns true on success, or false otherwise.

See Also


<fann_set_scaling_paramsfann_set_train_stop_function>
^Fann FunctionsLast updated: Mon, 26 Oct 2026