fann_randomize_weights

(PECL fann >= 1.0.0)

fann_randomize_weightsDar a cada conexión un peso aleatorio entre min_weight y max_weight

Descripción

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

Dar a cada conexión un peso aleatorio entre min_weight y max_weight.

Desde el comienzo, los pesos son aleatorios, entre -0.1 y 0.1.

Parámetros

ann

Un resource de red neuronal.

min_weight

El valor del peso máximo.

max_weight

El valor del peso mínimo.

Valores devueltos

Devuelve true en caso de éxito, o false de lo contrario.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top