/usr/share/octave/site/m/vlfeat/toolbox/demo/vl_demo_plots_rank.m is in octave-vlfeat 0.9.20+dfsg0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | %VL_DEMO_PLOTS_RANK Demonstates VL_ROC, VL_DET, VL_PR
randn('state',0) ;
numPos = 20 ;
numNeg = 100 ;
labels = [ones(1, numPos) -ones(1,numNeg)] ;
scores = randn(size(labels)) + labels ;
figure(1) ; clf ;
vl_roc(labels,scores) ;
vl_demo_print(1,'plots_rank_roc', 0.5) ;
figure(2) ; clf ;
subplot(2,2,1) ; vl_roc(labels,scores, 'plot', 'tntp') ;
subplot(2,2,2) ; vl_roc(labels,scores, 'plot', 'tptn') ;
subplot(2,2,3) ; vl_roc(labels,scores, 'plot', 'fptp') ;
subplot(2,2,4) ; vl_roc(labels,scores, 'plot', 'fpfn') ;
vl_figaspect(1) ;
vl_demo_print(2,'plots_rank_roc_variants', 1) ;
figure(3) ; clf ;
vl_det(labels,scores) ;
vl_demo_print(3,'plots_rank_det', 0.5) ;
figure(4) ; clf ;
vl_pr(labels,scores) ;
vl_demo_print(4,'plots_rank_pr', 0.5) ;
|