Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.base
Commits
226901a9
Commit
226901a9
authored
Jun 21, 2018
by
Theophile GENTILHOMME
Browse files
[script][vuln_commands,vuln_figure] Fix bugs
Wrong names after moving code
parent
f5dae9fd
Pipeline
#21226
canceled with stage
in 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/script/vuln_commands.py
View file @
226901a9
...
...
@@ -390,7 +390,7 @@ def metrics(ctx, scores, **kwargs):
Examples:
$ bob vuln vuln_metrics -v {licit,spoof}/scores-{dev,eval}
"""
process
=
figure
.
Metrics
Vuln
(
ctx
,
scores
,
True
,
load
.
split
)
process
=
figure
.
Metrics
(
ctx
,
scores
,
True
,
load
.
split
)
process
.
run
()
...
...
bob/pad/base/script/vuln_figure.py
View file @
226901a9
...
...
@@ -26,7 +26,7 @@ class Metrics(measure_figure.Metrics):
neg_list
,
pos_list
,
_
=
get_fta_list
(
input_scores
)
dev_neg
,
dev_pos
=
neg_list
[
0
],
pos_list
[
0
]
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
]
far
,
frr
=
farfrr
(
neg_list
[
1
],
pos_list
[
1
],
threshold
)
iapmr
,
_
=
farfrr
(
neg_list
[
3
],
pos_list
[
1
],
threshold
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment