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
9ff51b21
Commit
9ff51b21
authored
Jun 29, 2018
by
Theophile GENTILHOMME
Browse files
Help parameter customization
parent
83602a29
Pipeline
#21465
canceled with stage
in 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/script/pad_commands.py
View file @
9ff51b21
...
...
@@ -14,7 +14,7 @@ SCORE_FORMAT = (
CRITERIA
=
(
'eer'
,
'min-hter'
,
'bpcer20'
)
@
click
.
command
()
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
click
.
argument
(
'outdir'
)
@
click
.
option
(
'-mm'
,
'--mean-match'
,
default
=
10
,
type
=
click
.
FLOAT
,
show_default
=
True
)
...
...
bob/pad/base/script/vuln_commands.py
View file @
9ff51b21
...
...
@@ -68,7 +68,7 @@ def write_scores_to_file(neg, pos, filename, attack=False):
f
.
write
(
'x y foo %f
\n
'
%
i
)
@
click
.
command
()
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
click
.
argument
(
'outdir'
)
@
click
.
option
(
'--mean-gen'
,
default
=
7
,
type
=
FLOAT
,
show_default
=
True
)
@
click
.
option
(
'--mean-zei'
,
default
=
3
,
type
=
FLOAT
,
show_default
=
True
)
...
...
@@ -101,7 +101,7 @@ def gen(outdir, mean_gen, mean_zei, mean_pa):
attack
=
True
)
@
click
.
command
()
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
common_options
.
scores_argument
(
min_arg
=
2
,
nargs
=-
1
)
@
common_options
.
output_plot_file_option
(
default_out
=
'vuln_roc.pdf'
)
@
common_options
.
legends_option
()
...
...
@@ -141,7 +141,7 @@ def roc(ctx, scores, real_data, **kwargs):
process
.
run
()
@
click
.
command
()
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
common_options
.
scores_argument
(
min_arg
=
2
,
nargs
=-
1
)
@
common_options
.
output_plot_file_option
(
default_out
=
'vuln_det.pdf'
)
@
common_options
.
legends_option
()
...
...
@@ -181,7 +181,7 @@ def det(ctx, scores, real_data, **kwargs):
process
.
run
()
@
click
.
command
()
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
common_options
.
scores_argument
(
min_arg
=
2
,
force_eval
=
True
,
nargs
=-
1
)
@
common_options
.
output_plot_file_option
(
default_out
=
'vuln_epc.pdf'
)
@
common_options
.
legends_option
()
...
...
@@ -225,7 +225,7 @@ def epc(ctx, scores, **kwargs):
process
.
run
()
@
click
.
command
()
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
common_options
.
scores_argument
(
min_arg
=
2
,
force_eval
=
True
,
nargs
=-
1
)
@
common_options
.
output_plot_file_option
(
default_out
=
'vuln_epsc.pdf'
)
@
common_options
.
legends_option
()
...
...
@@ -298,7 +298,7 @@ def epsc(ctx, scores, criteria, var_param, fixed_param, three_d, sampling,
process
.
run
()
@
click
.
command
()
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
common_options
.
scores_argument
(
nargs
=-
1
,
min_arg
=
2
)
@
common_options
.
output_plot_file_option
(
default_out
=
'vuln_hist.pdf'
)
@
common_options
.
n_bins_option
()
...
...
@@ -355,7 +355,7 @@ def hist(ctx, scores, evaluation, **kwargs):
process
.
run
()
@
click
.
command
()
@
click
.
command
(
context_settings
=
common_options
.
CONTEXT_SETTINGS
)
@
common_options
.
scores_argument
(
min_arg
=
2
,
force_eval
=
True
,
nargs
=-
1
)
@
common_options
.
output_plot_file_option
(
default_out
=
'fmr_iapmr.pdf'
)
@
common_options
.
legends_option
()
...
...
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