Skip to content
Snippets Groups Projects
Commit 165fcc9d authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Fix score sorting - they are **not** before threshold is calculated

parent fef8aa1d
No related branches found
No related tags found
1 merge request!37WIP: initial implementation of harmonised plots
Pipeline #
...@@ -49,11 +49,11 @@ def calc_threshold(method, neg, pos): ...@@ -49,11 +49,11 @@ def calc_threshold(method, neg, pos):
""" """
method = method.lower() method = method.lower()
if method == 'bpcer20': if method == 'bpcer20':
threshold = far_threshold(neg, pos, 0.05, True) threshold = far_threshold(neg, pos, 0.05, False)
elif method == 'eer': elif method == 'eer':
threshold = eer_threshold(neg, pos, True) threshold = eer_threshold(neg, pos, False)
elif method == 'min-hter': elif method == 'min-hter':
threshold = min_hter_threshold(neg, pos, True) threshold = min_hter_threshold(neg, pos, False)
else: else:
raise ValueError("Unknown threshold criteria: {}".format(method)) raise ValueError("Unknown threshold criteria: {}".format(method))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment