PRTools contents |
SHIFTOP
S = SHIFTOP(D,E,C)
S = SHIFTOP([],E,C);
Input | |
D | Dataset, classification matrix (two classes only) |
E | Desired error class N for D*TESTC |
C | Index of desired class (default: C = 1) |
Output | |
S | Mapping, such that E = TESTC(D*S,[],LABEL) |
If D = A*W, with A a test dataset and W a trained classifier, then an ROC curve can be computed and plotted by ER = ROC(D,C), PLOTE(ER). C is the desired class number for which the error is plotted along the horizontal axis. The classifier W can be given any operating point along this curve by W = W*SHIFTOP(D,E,C)
The class index C refers to its position in the label list of the dataset A used for training the classifier that yielded D. The relation to LABEL is LABEL = CLASSNAME(A,C); C = GETCLASSI(A,LABEL).
datasets, mappings, testc, roc, plote, classname, getclassi,
PRTools contents |