php8.5
Home/ Manual/ fann / functions/ fann_set_weight

fann_set_weight

PHP function Edit on GitHub ✎

(PECL fann >= 1.0.0)

Set a connection in the network

Description

fann_set_weight(resource $ann, int $from_neuron, int $to_neuron, float $weight): bool

Set a connections in the network.

Parameters

ann

Description

from_neuron

The neuron where the connection starts

to_neuron

The neuron where the connection ends

weight

Connection weight

Return Values Bool

Source: reference/fann/functions/fann-set-weight.xml · from the official PHP manual (php/doc-en)