PRTools contents

PRTools manual

clevalf

CLEVALF

Classifier evaluation (feature size curve)

    E = CLEVALF(A,CLASSF,FEATSIZES,LEARNSIZE,NREPS,T,TESTFUN)

Input
 A Training dataset.
 CLASSF The untrained classifier to be tested.
 FEATSIZES Vector of feature sizes (default: all sizes)
 LEARNSIZE Number of objects/fraction of training set size  (see GENDAT)
 NREPS Number of repetitions (default: 1)
 T Independent test dataset (optional)
 TESTFUN Mapping,evaluation function (default classification error)

Output
 E Structure with results  See PLOTE for a description

Description

Generates at random for all feature sizes stored in FEATSIZES training

sets of the given LEARNSIZE out of the dataset A. See GENDAT for the
interpretation of LEARNSIZE. These are used for training the untrained
classifier CLASSF. The result is tested by all unused ojects of A, or,
if given, by the test dataset T. This is repeated N times. If no testset
is given and if LEARNSIZE is not given or empty, the training set is
bootstrapped. If a testset is given, the default training set size is
the entire training set. Default FEATSIZES: all feature sizes.
The mean erors are stored in E. The observed standard deviations are
stored in S. The default test routine is classification error estimation
by TESTC([],'crisp').

This function uses the RAND random generator and thereby reproduces only  if its seed is saved and reset.

See also

mappings, datasets, cleval, clevalb, testc, plote, gendat,

PRTools contents

PRTools manual