The Complete SPRLIB & ANNLIB

net_mse

- calculate the MSE of a dataset with respect to a network

SYNOPSIS

double net_mse (net, dset)

ARGUMENTS

NET *net A pointer to a NET structure.
DATASET *dset A pointer to a DATASET structure.

RETURNS

The MSE of all samples and the corresponding network outputs, or -1.0 when an error is detected.

FUNCTION

This function calls sample_mse for all dataset SAMPLE structures. It sums the calculated MSE's and finally divides this sum by the number of samples in dset.

NOTE

The same code as net_perf, but faster. The dataset dset must be an IOSET and a LEARNSET (see DATASET-flags). Only samples with the SAMPLE_ENABLED flag set are taken into account (see SAMPLE-flags).

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