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

fann_set_weight_array

(PECL fann >= 1.0.0)

fann_set_weight_array — Set connections in the network

Description

function fann_set_weight_array(resource $ann, array $connections): bool

Set connections in the network.

Only the weights can be changed, connections and weights are ignored if they do not already exist in the network.

Parameters

ann

Neural network resource.

connections

An array of FANNConnection objects

Return Values

Returns true on success, or false otherwise.


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