Fonctions Fann
PHP Manual

fann_randomize_weights

(PECL fann >= 1.0.0)

fann_randomize_weightsGive each connection a random weight between min_weight and max_weight

Description

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

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.

Liste de paramètres

ann

Ressource de réseau de neurones.

min_weight

Minimum weight value

max_weight

Maximum weight value

Valeurs de retour

Retourne TRUE en cas de succès, FALSE sinon.

Voir aussi


Fonctions Fann
PHP Manual