The Complete SPRLIB & ANNLIB

norm_weights_ff

- normalize the weights on the input links of one or more layers

SYNOPSIS

int norm_weights_ff (net, norm, layer_id)

ARGUMENTS

NET *net A pointer to a correctly filled NET structure.
double norm The desired length of the weight vector after normalization.
long layer_id The layer ID of the units to be normalized. When layer_id = -1, all units in the network are normalized.

RETURNS

TRUE in case of an error, FALSE in case of success.

FUNCTION

This function calculates the root of the sum of the squared incoming weights of a UNIT, including the bias. It then divides all these weights by a number such that this value equals norm .

NOTE

This function is currently not used within the library.

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998