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

fann_set_activation_function_hidden

(PECL fann >= 1.0.0)

fann_set_activation_function_hidden — Sets the activation function for all of the hidden layers

Description

function fann_set_activation_function_hidden(resource $ann, int $activation_function): bool

Sets the activation function for all of the hidden layers.

Parameters

ann

Neural network resource.

activation_function

The activation functions constant.

Return Values

Returns true on success, or false otherwise.

See Also


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