Blog Archive

Thursday, May 19, 2016

How to plot EER/DET

Step 1: Download

Step 2: Test: (You only need replace 'tar' and 'non' with your own value)

figure;
tar = randn(1,100)*2+1; non = randn(1,100);
[pmiss,pfa] = rocch(tar,non);
plot(pfa,pmiss,'b-');
axis('square');grid;
title('flatter DET');


% demo2:
dcfWeights_SRE08=[10*0.01 1*0.99];
dcfWeights_SRE10=[1*0.001 1*0.999];
dcfWeights=dcfWeights_SRE10


[x,y,EER,minDCF] = rocchdet(llr_target,llr_nontarget,dcfWeights');
[x2,y2,EER2,minDCF2008] = rocchdet(llr_target,llr_nontarget,dcfWeights_SRE08');
[pmiss,pfa] = Compute_DET(llr_target,llr_nontarget);
hold on; make_det_axes();
plot(x,y,'g',probit(pfa),probit(pmiss),'r');
legend(sprintf('ROCCH-DET (EER = %3.3f%%)',EER*100),'classical DET',...
       'Location','SouthWest');
title('EER read off ROCCH-DET');
hold off;
fprintf('\nCosine Distance Scoring Based baseline system performance on the protocol of NIST SRE %d\n', NIST_SRE);
fprintf('\nEER=%3.5f%%\t\tminDCF_new=%3.10f\tminDCF_old=%3.10f\n',EER*100, minDCF,minDCF2008);

No comments:

Post a Comment