The Complete SPRLIB & ANNLIB

print_outweights

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

SYNOPSIS

int print_outweights (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 hidden layer and the output layer to the C file which is constructed from net. The weights are written as a matrix of doubles:
double OutWeights[NR_OUTPUTS][NR_HUNITS + 1] = 
{
  ...
}

For a definition of NR_HUNITS and NR_OUTPUTS, see print_c_header. The last row of the matrix contains the biases (theta's) of the units in the output layer.

SEE ALSO

make_source_ffnet, printfile, print_c_header, print_inweights, print_c_code

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