The Complete SPRLIB & ANNLIB

create_ml_links

- create all the links needed for a maximum likelihood network (LOCAL)

SYNOPSIS

int create_ml_links (UnitVect, HidVect, net)

ARGUMENTS

int *UnitVect A vector containing 3 elements: the number of input units; the total number of kernels and the number of output units (classes), in that order.
int *HidVect A vector specifying, for each class, the number of hidden units.
NET *net The NET structure, already containing the units.

RETURNS

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

FUNCTION

This function supposes that net already has a double linked list of UNIT structures attached (see create_ml_units). It allocates all necessary LINK structures between these units, using malloc_link, and fills them with default values. The input layer and the hidden layer are completely connected. However, in the output layer, each unit k is connected to only HidVect[k] adjacent units in the hidden layer. Hence the sum of all elements HidVect[k] must be the total number of hidden units, i.e. UnitVect[2]. All links get an increasing LinkId and a correct LinkFlag. All links are allocated in pairs (an inlink and an outlink).

NOTE

This function is used by create_mlnet.

SEE ALSO

create_ml_units, create_ml_weights, create_mlnet

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