The Complete SPRLIB & ANNLIB

extract_dataset_ff_net

- extract a dataset from a certain layer of a network

SYNOPSIS

DATASET *extract_dataset_ff_net (net, set, layer)

ARGUMENTS

NET *net A pointer to a NET structure.
DATASET *set A pointer to a DATASET structure.
long layer The layer from which to extract the new dataset.

RETURNS

A pointer to a valid DATASET structure if there were no errors; NULL otherwise.

FUNCTION

This function can be used to use a trained network as a mapping. A new dataset (IOSET, see DATASET-flags) is created and most values, including the output vectors or labels, are copied from set. Then, for each SAMPLE in set, the network net is evaluated using eval_ff_net. Then, the outputs of the units in layer are taken as the input vector of a sample in the newly created set.

NOTE

The network net has to be of type FFNET, KOHNET, MLNET, RBFNET or SHAREDNET (see NET-flags).

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