(PECL fann >= 1.0.0)
fann_randomize_weights — Give each connection a random weight between min_weight and max_weight
$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.
annNeural network resource.
min_weightMinimum weight value
max_weightMaximum weight value
Returns true on success, or false otherwise.