Commit cb3f0d6c0c28b52daa56f592d4378a5d42807141

Authored by Brendan K
1 parent 7790361b

Updated evalEER reporting

Showing 1 changed file with 12 additions and 2 deletions
openbr/core/eval.cpp
... ... @@ -1300,14 +1300,24 @@ void EvalEER(const QString &predictedXML, QString gt_property, QString distribut
1300 1300 thres += stepSize;
1301 1301 }
1302 1302  
  1303 + printf("\n==========================================================\n");
1303 1304 printf("Class 0 Templates: %d\tClass 1 Templates: %d\tTotal Templates: %d\n",
1304 1305 numTemplates-classOneTemplateCount, classOneTemplateCount, numTemplates);
1305   - foreach (float FAR, QList<float>() << 0.1 << 0.01 << 0.001 << 0.0001) {
  1306 + printf("----------------------------------------------------------\n");
  1307 + foreach (float FAR, QList<float>() << 0.2 << 0.1 << 0.05 << 0.01 << 0.001 << 0.0001) {
1306 1308 const OperatingPoint op = getOperatingPointGivenFAR(operatingPoints, FAR);
1307   - printf("TAR = %.3f @ FAR = %.0e | Threshold= %.3f\n", op.TAR, FAR, op.score);
  1309 + printf("TAR = %.3f @ FAR = %.4f | Threshold= %.3f\n", op.TAR, FAR, op.score);
1308 1310  
1309 1311 }
  1312 + printf("----------------------------------------------------------\n");
  1313 + foreach (float TAR, QList<float>() << 0.8 << 0.85 << 0.9 << 0.95 << 0.98) {
  1314 + const OperatingPoint op = getOperatingPointGivenTAR(operatingPoints, TAR);
  1315 + printf("FAR = %.3f @ TAR = %.4f | Threshold= %.3f\n", op.FAR, TAR, op.score);
  1316 +
  1317 + }
  1318 + printf("----------------------------------------------------------\n");
1310 1319 printf("EER: %.3f @ Threshold %.3f\n", EER*100, EERThres);
  1320 + printf("==========================================================\n\n");
1311 1321  
1312 1322 // Optionally write ROC curve
1313 1323 if (!pdf.isEmpty()) {
... ...