Classifier evaluation (learning curve)
E = CLEVAL(A,CLASSF,TRAINSIZES,NREPS,S,TESTFUN)
Generates at random, for all class sizes defined in TRAINSIZES, training sets out of the dataset A and uses these for training the untrained classifier CLASSF. CLASSF may also be a cell array of untrained classifiers; in this case the routine will be run for all of them. The resulting trained classifiers are tested on the training objects and on the left-over test objects. This procedure is then repeated NREPS times. The default test routine is classification error estimation by TESTC(,'crisp').
Training set generation is done such that for each run the larger training sets include the smaller ones and that for all classifiers the same training sets are used.
If CLASSF is fully deterministic, this function uses the RAND random generator and thereby reproduces if its seed is reset (see RAND). If CLASSF uses RANDN, its seed may have to be set as well.
Per default both the true error (error on the test set) and the apparent error (error on the training set) are computed. They will be visible when the curves are plotted using PLOTE.