From 165fcc9dd4e520f555cdbc545de7986b32b610d1 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Mon, 26 Mar 2018 15:46:21 +0200 Subject: [PATCH] Fix score sorting - they are **not** before threshold is calculated --- bob/pad/base/script/metrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bob/pad/base/script/metrics.py b/bob/pad/base/script/metrics.py index f1ace8b..54b9fb6 100644 --- a/bob/pad/base/script/metrics.py +++ b/bob/pad/base/script/metrics.py @@ -49,11 +49,11 @@ def calc_threshold(method, neg, pos): """ method = method.lower() if method == 'bpcer20': - threshold = far_threshold(neg, pos, 0.05, True) + threshold = far_threshold(neg, pos, 0.05, False) elif method == 'eer': - threshold = eer_threshold(neg, pos, True) + threshold = eer_threshold(neg, pos, False) elif method == 'min-hter': - threshold = min_hter_threshold(neg, pos, True) + threshold = min_hter_threshold(neg, pos, False) else: raise ValueError("Unknown threshold criteria: {}".format(method)) -- GitLab