Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.measure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.measure
Commits
bafb5b7c
Commit
bafb5b7c
authored
Apr 25, 2018
by
Theophile GENTILHOMME
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change option key to
parent
235c8da6
Pipeline
#19413
passed with stage
in 43 minutes and 58 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
bob/measure/script/commands.py
bob/measure/script/commands.py
+1
-1
bob/measure/script/common_options.py
bob/measure/script/common_options.py
+2
-2
bob/measure/test_script.py
bob/measure/test_script.py
+2
-2
No files found.
bob/measure/script/commands.py
View file @
bafb5b7c
...
...
@@ -182,7 +182,7 @@ def hist(ctx, scores, evaluation, **kwargs):
$ bob measure hist dev-scores1 eval-scores1 dev-scores2
eval-scores2
$ bob measure hist --criter hter --show-dev dev-scores1 eval-scores1
$ bob measure hist --criter
ion
hter --show-dev dev-scores1 eval-scores1
"""
process
=
figure
.
Hist
(
ctx
,
scores
,
evaluation
,
load
.
split
)
process
.
run
()
...
...
bob/measure/script/common_options.py
View file @
bafb5b7c
...
...
@@ -250,13 +250,13 @@ def criterion_option(lcriteria=['eer', 'hter', 'far'], **kwargs):
list_accepted_crit
=
lcriteria
if
lcriteria
is
not
None
else
\
[
'eer'
,
'hter'
,
'far'
]
if
value
not
in
list_accepted_crit
:
raise
click
.
BadParameter
(
'Incorrect value for `--criter`. '
raise
click
.
BadParameter
(
'Incorrect value for `--criter
ion
`. '
'Must be one of [`%s`]'
%
'`, `'
.
join
(
list_accepted_crit
))
ctx
.
meta
[
'criter'
]
=
value
return
value
return
click
.
option
(
'--criter'
,
default
=
'eer'
,
help
=
'Criterion to compute plots and '
'--criter
ion
'
,
default
=
'eer'
,
help
=
'Criterion to compute plots and '
'metrics: `eer` (default), `hter`'
,
callback
=
callback
,
is_eager
=
True
,
**
kwargs
)(
func
)
return
custom_criterion_option
...
...
bob/measure/test_script.py
View file @
bafb5b7c
...
...
@@ -130,7 +130,7 @@ def test_hist():
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
hist
,
[
'--no-evaluation'
,
'--criter'
,
'hter'
,
result
=
runner
.
invoke
(
commands
.
hist
,
[
'--no-evaluation'
,
'--criter
ion
'
,
'hter'
,
'--output'
,
'HISTO.pdf'
,
'-b'
,
30
,
dev1
,
dev2
])
if
result
.
output
:
...
...
@@ -138,7 +138,7 @@ def test_hist():
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
hist
,
[
'--criter'
,
'eer'
,
'--output'
,
result
=
runner
.
invoke
(
commands
.
hist
,
[
'--criter
ion
'
,
'eer'
,
'--output'
,
'HISTO.pdf'
,
'-b'
,
30
,
dev1
,
test1
,
dev2
,
test2
])
if
result
.
output
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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