Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [fann_init_weights]

Protect Your Website Today


PHP Manual || Fann Functions

(PECL fann >= 1.0.0)

fann_init_weightsInitialize the weights using Widrow + Nguyen’s algorithm

Description

fann_init_weights ( resource $ann , resource $train_data ) : bool

Initialize the weights using Widrow + Nguyen’s algorithm.

This function behaves similarly to fann_randomize_weights(). It will use the algorithm developed by Derrick Nguyen and Bernard Widrow to set the weights in such a way as to speed up training. This technique is not always successful, and in some cases can be less efficient than a purely random initialization.

The algorithm requires access to the range of the input data (for example largest and smallest input), and therefore accepts a second argument, data, which is the training data that will be used to train the network.

Parameters

ann

Neural network resource.

train_data

Neural network training data resource.

Return Values

Returns TRUE on success, or FALSE otherwise.

See Also



PHP Manual || Fann Functions