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.bio.base
Commits
a55d9111
Commit
a55d9111
authored
Jun 27, 2018
by
Theophile GENTILHOMME
Browse files
Merge branch 'metrics' into 'master'
Set names for different bio metrics See merge request
!165
parents
83a916b3
3fea1b48
Pipeline
#21355
passed with stages
in 10 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/script/figure.py
View file @
a55d9111
...
...
@@ -114,6 +114,7 @@ class Dir(measure_figure.PlotBase):
class
Metrics
(
measure_figure
.
Metrics
):
''' Compute metrics from score files'''
def
init_process
(
self
):
if
self
.
_criterion
==
'rr'
:
self
.
_thres
=
[
None
]
*
self
.
n_systems
if
self
.
_thres
is
None
else
\
...
...
@@ -205,6 +206,11 @@ class Metrics(measure_figure.Metrics):
tabulate
(
raws
,
headers
,
self
.
_tablefmt
),
file
=
self
.
log_file
)
else
:
self
.
names
=
(
'Failure to Acquire'
,
'False Match Rate'
,
'False Non Match Rate'
,
'False Accept Rate'
,
'False Reject Rate'
,
'Half Total Error Rate'
)
super
(
Metrics
,
self
).
compute
(
idx
,
input_scores
,
input_names
)
...
...
bob/bio/base/test/test_commands.py
View file @
a55d9111
...
...
@@ -252,7 +252,7 @@ def test_hist():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
hist
,
[
'--criterion'
,
'eer'
,
'--output'
,
'HISTO.pdf'
,
'-b'
,
'30'
,
'-e'
,
'-
lg
'
,
'A,B'
,
dev1
,
test1
,
dev2
,
'-
ts
'
,
'A,B'
,
dev1
,
test1
,
dev2
,
test2
])
if
result
.
output
:
click
.
echo
(
result
.
output
)
...
...
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