fann_randomize_weights

(PECL fann >= 1.0.0)
Give each connection a random weight between min_weight and max_weight
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.

Parameters:
ann

Neural network resource.

min_weight

Minimum weight value

max_weight

Maximum weight value

Returns:

Returns TRUE on success, or FALSE otherwise.

See also:

fann_init_weights() -

doc_php
2016-02-24 16:05:53
Comments
Leave a Comment

Please login to continue.