Commit 226901a9 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

[script][vuln_commands,vuln_figure] Fix bugs

Wrong names after moving code
parent f5dae9fd
Pipeline #21226 canceled with stage
in 12 seconds
...@@ -390,7 +390,7 @@ def metrics(ctx, scores, **kwargs): ...@@ -390,7 +390,7 @@ def metrics(ctx, scores, **kwargs):
Examples: Examples:
$ bob vuln vuln_metrics -v {licit,spoof}/scores-{dev,eval} $ bob vuln vuln_metrics -v {licit,spoof}/scores-{dev,eval}
""" """
process = figure.MetricsVuln(ctx, scores, True, load.split) process = figure.Metrics(ctx, scores, True, load.split)
process.run() process.run()
......
...@@ -26,7 +26,7 @@ class Metrics(measure_figure.Metrics): ...@@ -26,7 +26,7 @@ class Metrics(measure_figure.Metrics):
neg_list, pos_list, _ = get_fta_list(input_scores) neg_list, pos_list, _ = get_fta_list(input_scores)
dev_neg, dev_pos = neg_list[0], pos_list[0] dev_neg, dev_pos = neg_list[0], pos_list[0]
criter = self._criterion or 'eer' criter = self._criterion or 'eer'
threshold = calc_threshold(criter, dev_neg, dev_pos) \ threshold = error_utils.calc_threshold(criter, dev_neg, dev_pos) \
if self._thres is None else self._thres[idx] if self._thres is None else self._thres[idx]
far, frr = farfrr(neg_list[1], pos_list[1], threshold) far, frr = farfrr(neg_list[1], pos_list[1], threshold)
iapmr, _ = farfrr(neg_list[3], pos_list[1], threshold) iapmr, _ = farfrr(neg_list[3], pos_list[1], threshold)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment