The Complete SPRLIB & ANNLIB

perf_mlnet

- auxiliary function to determine the performance of a maximum likelihood network

SYNOPSIS

double perf_mlnet (net, dset)

ARGUMENTS

NET *net A maximum likelihood type NET.
DATASET *dset The DATASET on which the performance has to be measured.

RETURNS

1.0 - (cs/ts) where cs is the number of correctly classified samples and ts is the total number of samples, or -1.0 if an error occured.

FUNCTION

This routine first checks whether the network is correct: NetFlag should be MLNET (see NET-flags); NumOutputs should be at least 2 (i.e., at least 2 classes) and NumInputs should match dset->NumInputs. The network is evaluated (using eval_ff_net) for every SAMPLE in dset. The output unit having the maximum output value is considered to be the network's classification output. If the InOutIndex of that unit matches the Output.Label of the sample, the sample is judged correctly classified. The return value is calculated as stated above.

SEE ALSO

log_lhood_mlnet, create_mlnet, learn_mlnet

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