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_get_layer_arrayfann_get_learning_rate>
^Fann FunctionsLast updated: Mon, 26 Oct 2026

fann_get_learning_momentum

(PECL fann >= 1.0.0)

fann_get_learning_momentum — Returns the learning momentum

Description

function fann_get_learning_momentum(resource $ann): float

The learning momentum can be used to speed up FANN_TRAIN_INCREMENTAL training. A too high momentum will however not benefit training. Setting momentum to 0 will be the same as not using the momentum parameter. The recommended value of this parameter is between 0.0 and 1.0.

The default momentum is 0.

Parameters

ann

Neural network resource.

Return Values

Returns true on success, or false otherwise.

The learning momentum, or false on error.

See Also


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