The Complete SPRLIB & ANNLIB

print_inweights

- write the weights between the input and hidden layer to a C file (LOCAL)

SYNOPSIS

int print_inweights (stream, net)

ARGUMENTS

FILE *stream A valid filepointer.
NET *net A pointer to a NET structure.

RETURNS

FALSE if successful, TRUE if not.

FUNCTION

This function is used by make_source_ffnet to write the weights between the input layer and the hidden layer to the C file which is constructed from net. The weights are written as a matrix of doubles:
double InWeights[NR_HUNITS][NR_INPUTS + 1] = 
{
  ...
}

double HidActivation[NR_HUNITS];

For a definition of NR_HUNITS and NR_INPUTS, see print_c_header. The last row of the matrix contains the biases (theta's) of the units in the hidden layer. Note that in the last line, the HidActivation array is declared but not initialized.

SEE ALSO

make_source_ffnet, printfile, print_c_header, print_outweights, print_c_code

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