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
1
Merge Requests
1
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
5636f171
Commit
5636f171
authored
Jun 29, 2018
by
Theophile GENTILHOMME
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Everything is in bob.extension nowD
parent
b05d2d72
Pipeline
#21474
passed with stage
in 11 minutes and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
bob/measure/script/common_options.py
bob/measure/script/common_options.py
+8
-9
bob/measure/script/gen.py
bob/measure/script/gen.py
+2
-3
No files found.
bob/measure/script/common_options.py
View file @
5636f171
...
...
@@ -8,8 +8,7 @@ import matplotlib.pyplot as plt
import
tabulate
from
matplotlib.backends.backend_pdf
import
PdfPages
from
bob.extension.scripts.click_helper
import
(
bool_option
,
list_float_option
,
verbosity_option
,
open_file_mode_option
,
CONTEXT_SETTINGS
bool_option
,
list_float_option
,
verbosity_option
,
open_file_mode_option
)
LOGGER
=
logging
.
getLogger
(
__name__
)
...
...
@@ -590,7 +589,7 @@ def metrics_command(docstring, criteria=('eer', 'min-hter', 'far')):
def
custom_metrics_command
(
func
):
func
.
__doc__
=
docstring
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
command
()
@
scores_argument
(
nargs
=-
1
)
@
eval_option
()
@
table_option
()
...
...
@@ -637,7 +636,7 @@ def roc_command(docstring):
def
custom_roc_command
(
func
):
func
.
__doc__
=
docstring
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
command
()
@
scores_argument
(
nargs
=-
1
)
@
titles_option
()
@
legends_option
()
...
...
@@ -692,7 +691,7 @@ def det_command(docstring):
def
custom_det_command
(
func
):
func
.
__doc__
=
docstring
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
command
()
@
scores_argument
(
nargs
=-
1
)
@
output_plot_file_option
(
default_out
=
'det.pdf'
)
@
titles_option
()
...
...
@@ -745,7 +744,7 @@ def epc_command(docstring):
def
custom_epc_command
(
func
):
func
.
__doc__
=
docstring
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
command
()
@
scores_argument
(
min_arg
=
1
,
force_eval
=
True
,
nargs
=-
1
)
@
output_plot_file_option
(
default_out
=
'epc.pdf'
)
@
titles_option
()
...
...
@@ -790,7 +789,7 @@ def hist_command(docstring):
def
custom_hist_command
(
func
):
func
.
__doc__
=
docstring
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
command
()
@
scores_argument
(
nargs
=-
1
)
@
output_plot_file_option
(
default_out
=
'hist.pdf'
)
@
eval_option
()
...
...
@@ -846,7 +845,7 @@ def evaluate_command(docstring, criteria=('eer', 'min-hter', 'far')):
def
custom_evaluate_command
(
func
):
func
.
__doc__
=
docstring
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
command
()
@
scores_argument
(
nargs
=-
1
)
@
legends_option
()
@
sep_dev_eval_option
()
...
...
@@ -960,7 +959,7 @@ def multi_metrics_command(docstring, criteria=('eer', 'min-hter', 'far')):
def
custom_metrics_command
(
func
):
func
.
__doc__
=
docstring
@
click
.
command
(
'multi-metrics'
,
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
command
(
'multi-metrics'
)
@
scores_argument
(
nargs
=-
1
)
@
eval_option
()
@
n_protocols_option
()
...
...
bob/measure/script/gen.py
View file @
5636f171
...
...
@@ -5,8 +5,7 @@ import logging
import
numpy
import
click
from
click.types
import
FLOAT
from
bob.extension.scripts.click_helper
import
(
verbosity_option
,
CONTEXT_SETTINGS
)
from
bob.extension.scripts.click_helper
import
verbosity_option
from
bob.core
import
random
from
bob.io.base
import
create_directories_safe
...
...
@@ -74,7 +73,7 @@ def write_scores_to_file(neg, pos, filename):
f
.
write
(
text
)
@
click
.
command
(
context_settings
=
CONTEXT_SETTINGS
)
@
click
.
command
()
@
click
.
argument
(
'outdir'
)
@
click
.
option
(
'--mean-neg'
,
default
=-
1
,
type
=
FLOAT
,
show_default
=
True
)
@
click
.
option
(
'--mean-pos'
,
default
=
1
,
type
=
FLOAT
,
show_default
=
True
)
...
...
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