The Complete SPRLIB & ANNLIB

make_source_ffnet

- write a stand-alone C program containing a network evaluation routine

SYNOPSIS

int make_source_ffnet (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 uses the functions mentioned below to write a stand-alone C program containing all the weights and biases (theta's) of net. Also included is a routine eval_c_ffnet (see print_c_code) to evaluate that network. The network written has fixed dimensions.

NOTE

The network must have type FFNET (see NET-flags) and contain 3 layers. Furthermore, the activation function used must be ActInprod and the transfer function either TransLinear or TransSigmoid for output units (but equal for all output units) and TransSigmoid for hidden units.

SEE ALSO

printfile, print_c_header, print_inweights, print_outweights, print_c_code

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