The Complete SPRLIB & ANNLIB

create_ff_net

- create a feedforward network

SYNOPSIS

NET *create_ff_net (NetId, NumLayers, UnitVect)

ARGUMENTS

long NetId A user defined network ID.
int NumLayers The number of layers the network should have.
int *UnitVect A vector containing, for each layer, the number of units that layer should contain.

RETURNS

NULL if an error occured, otherwise a pointer to a NET.

FUNCTION

This function builds a completely connected feedforward network with a specified number of layers and units per layer. The number of layers should be at least 3; the number of units should be at least 1 per layer. A NET structure is allocated using malloc_net and some fields are filled with default values: NetText gets the value FFNET_TEXT (see FEEDFORWARD-constants); NetFlag is set to FFNET (see NET-flags); the fields NumInput, NumOutputs, NumLayers, NumUnits, NumLinks and NumWeights are correctly filled. Finally, the functions create_ff_units, create_ff_links and create_ff_weights are called to construct the network.

SEE ALSO

create_mlnet, create_koh_net, create_sharednet

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