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

fann_randomize_weights

PHP function Edit on GitHub ✎

(PECL fann >= 1.0.0)

Give each connection a random weight between min_weight and max_weight

Description

fann_randomize_weights(resource $ann, float $min_weight, float $max_weight): bool

Give each connection a random weight between min_weight and max_weight

From the beginning the weights are random between -0.1 and 0.1.

Parameters

ann

Description

min_weight

Minimum weight value

max_weight

Maximum weight value

Return Values Bool

See Also

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