The Complete SPRLIB & ANNLIB

marq_grad_net

- calculate the gradient of all the parameters belonging to the complete network (LOCAL)

SYNOPSIS

int marq_grad_net (net, target, option)

ARGUMENTS

NET *net Pointer to a feed forward network.
double *target A vector containing the target values.
int option See the note below.

RETURNS

TRUE if an error was detected, FALSE if no error was detected. On exit, all the gradients are stored into the SystemData.d records of all the trainable parameters.

NOTE

Two types of gradients can be computed by this function: (1) the gradient of the MSE with respect to all the trainable parameters (use option = GRADMSE); (2) the gradient of the network output with respect to all the trainable parameters (use option = GRADNET). The target values are ignored if the GRADNET option is used.

SEE ALSO

learn_marquardt_ffnet, marq_grad_unit

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