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
aed05f24
Commit
aed05f24
authored
Jun 05, 2018
by
Theophile GENTILHOMME
Browse files
[script][figure,pad_commands,vuln_commands] --titles option for PAD and
change option defaults
parent
e1e9a249
Pipeline
#20793
passed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/script/figure.py
View file @
aed05f24
...
...
@@ -520,7 +520,7 @@ class Epsc3D(Epsc):
class
Roc
(
bio_figure
.
Roc
):
'''ROC for PA
R
D'''
'''ROC for PAD'''
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
super
(
Roc
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
self
.
_x_label
=
ctx
.
meta
.
get
(
'x_label'
)
or
'APCER'
...
...
bob/pad/base/script/pad_commands.py
View file @
aed05f24
...
...
@@ -37,7 +37,7 @@ def gen(ctx, outdir, mean_match, mean_non_match, n_sys, five_col):
@
click
.
command
()
@
common_options
.
scores_argument
(
nargs
=-
1
)
@
common_options
.
title_option
()
@
common_options
.
title
s
_option
()
@
common_options
.
legends_option
()
@
common_options
.
legend_loc_option
(
dflt
=
'lower-right'
)
@
common_options
.
no_legend_option
()
...
...
@@ -54,7 +54,7 @@ def gen(ctx, outdir, mean_match, mean_non_match, n_sys, five_col):
@
common_options
.
const_layout_option
()
@
common_options
.
style_option
()
@
common_options
.
linestyles_option
()
@
common_options
.
figsize_option
()
@
common_options
.
figsize_option
(
dflt
=
None
)
@
common_options
.
min_far_option
()
@
verbosity_option
()
@
click
.
pass_context
...
...
@@ -83,7 +83,7 @@ def roc(ctx, scores, evaluation, **kargs):
@
click
.
command
()
@
common_options
.
scores_argument
(
nargs
=-
1
)
@
common_options
.
title_option
()
@
common_options
.
title
s
_option
()
@
common_options
.
output_plot_file_option
(
default_out
=
'det.pdf'
)
@
common_options
.
legends_option
()
@
common_options
.
legend_loc_option
(
dflt
=
'upper-right'
)
...
...
@@ -98,7 +98,7 @@ def roc(ctx, scores, evaluation, **kargs):
@
common_options
.
const_layout_option
()
@
common_options
.
style_option
()
@
common_options
.
linestyles_option
()
@
common_options
.
figsize_option
()
@
common_options
.
figsize_option
(
dflt
=
None
)
@
common_options
.
lines_at_option
()
@
common_options
.
min_far_option
()
@
verbosity_option
()
...
...
@@ -125,7 +125,7 @@ def det(ctx, scores, evaluation, **kargs):
@
click
.
command
()
@
common_options
.
scores_argument
(
nargs
=-
1
)
@
common_options
.
title_option
()
@
common_options
.
title
s
_option
()
@
common_options
.
output_plot_file_option
(
default_out
=
'hist.pdf'
)
@
common_options
.
eval_option
()
@
common_options
.
n_bins_option
()
...
...
@@ -168,7 +168,7 @@ def hist(ctx, scores, evaluation, **kwargs):
@
click
.
command
()
@
common_options
.
scores_argument
(
min_arg
=
1
,
force_eval
=
True
,
nargs
=-
1
)
@
common_options
.
title_option
()
@
common_options
.
title
s
_option
()
@
common_options
.
output_plot_file_option
(
default_out
=
'epc.pdf'
)
@
common_options
.
legends_option
()
@
common_options
.
legend_loc_option
(
dflt
=
'upper-center'
)
...
...
@@ -177,7 +177,7 @@ def hist(ctx, scores, evaluation, **kwargs):
@
common_options
.
const_layout_option
()
@
common_options
.
style_option
()
@
common_options
.
linestyles_option
()
@
common_options
.
figsize_option
()
@
common_options
.
figsize_option
(
dflt
=
None
)
@
verbosity_option
()
@
click
.
pass_context
def
epc
(
ctx
,
scores
,
**
kargs
):
...
...
bob/pad/base/script/vuln_commands.py
View file @
aed05f24
...
...
@@ -311,7 +311,6 @@ def epsc(ctx, scores, criteria, var_param, fixed_param, three_d, sampling,
@
click
.
command
()
@
common_options
.
scores_argument
(
nargs
=-
1
,
min_arg
=
2
)
@
common_options
.
title_option
()
@
common_options
.
output_plot_file_option
(
default_out
=
'vuln_hist.pdf'
)
@
common_options
.
eval_option
()
@
common_options
.
n_bins_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