You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
375 B
Matlab

function plot_precision_recall(stats,style)
TP=stats(:,1);
FP=stats(:,2);
FN=stats(:,3);
precision=TP./(TP+FP);
recall=TP./(TP+FN);
plot(1-precision,recall,style,'LineWidth',2,'MarkerSize',8,'MarkerFaceColor',style(1))
set(gca,'FontSize',12);
xlabel('1-precision')
ylabel('recall')
%axis([0,0.5,0.5,1])
axis([0,1,0,1])
set(gcf,'PaperSize',[8 8],'PaperPosition',[0 0 8 8]);