PLOTROC Draw an ROC curve
H = PLOTROC(W,A) H = PLOTROC(E)
Plot the roc curve of E according to the 'traditional' way: on the x axis we put the false positive (outliers accepted) and on the y axis we put the true positive (targets accepted).
By supplying W and A explicitly, you get some added functionality, in the sense that you can change the operating point and retrieve the new classifier. You can retrieve the classifier using GETROCW:
a = oc_set(gendatb,'1'); w = gauss_dd(a,0.1); h = plotroc(w,a); % Move the operating point over the ROC curve and click on the % desired position. Then type: w2 = getrocw(h);
The mapping w2 now contains the same classifier w, only with a changed operating point.
H = PLOTROC(W,A,LINESTYLE) H = PLOTROC(E,LINESTYLE)
When required, a third (second) argument can be given, indicating the color, LINESTYLE and markers of the plot. See 'plot' for the possibilities.
Finally, PLOTROC is also capable of plotting a precision-recall curve.
See also: dd_error dd_roc dd_prc dd_auc getrocw Copyright: D.M.J. Tax, D.M.J.Tax@prtools.org Faculty EWI, Delft University of Technology P.O. Box 5031, 2600 GA Delft, The Netherlands