Skip to content
GitLab
Menu
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
c30bdb46
Commit
c30bdb46
authored
Apr 30, 2018
by
Theophile GENTILHOMME
Browse files
Modifications according to option name change titles->legends
parent
78a95405
Pipeline
#19611
failed with stage
in 37 minutes and 41 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/script/det.py
View file @
c30bdb46
...
...
@@ -9,7 +9,7 @@ from . import figure
@
click
.
command
()
@
common_options
.
scores_argument
(
min_arg
=
2
,
force_eval
=
True
,
nargs
=-
1
)
@
common_options
.
output_plot_file_option
(
default_out
=
'det.pdf'
)
@
common_options
.
title
s_option
()
@
common_options
.
legend
s_option
()
@
common_options
.
title_option
()
@
common_options
.
const_layout_option
()
@
common_options
.
style_option
()
...
...
bob/pad/base/script/epc.py
View file @
c30bdb46
...
...
@@ -9,7 +9,7 @@ from . import figure
@
click
.
command
()
@
common_options
.
scores_argument
(
min_arg
=
2
,
force_eval
=
True
,
nargs
=-
1
)
@
common_options
.
output_plot_file_option
(
default_out
=
'epc.pdf'
)
@
common_options
.
title
s_option
()
@
common_options
.
legend
s_option
()
@
common_options
.
title_option
()
@
common_options
.
const_layout_option
()
@
common_options
.
x_label_option
()
...
...
@@ -50,7 +50,7 @@ def epc(ctx, scores, **kwargs):
@
click
.
command
()
@
common_options
.
scores_argument
(
min_arg
=
2
,
force_eval
=
True
,
nargs
=-
1
)
@
common_options
.
output_plot_file_option
(
default_out
=
'epsc.pdf'
)
@
common_options
.
title
s_option
()
@
common_options
.
legend
s_option
()
@
common_options
.
const_layout_option
()
@
common_options
.
x_label_option
()
@
common_options
.
y_label_option
()
...
...
bob/pad/base/script/figure.py
View file @
c30bdb46
...
...
@@ -66,7 +66,7 @@ class Metrics(measure_figure.Metrics):
eval_neg
,
eval_pos
=
neg_list
[
1
],
pos_list
[
1
]
eval_file
=
input_names
[
1
]
title
=
self
.
_
title
s
[
idx
]
if
self
.
_
title
s
is
not
None
else
None
title
=
self
.
_
legend
s
[
idx
]
if
self
.
_
legend
s
is
not
None
else
None
headers
=
[
''
or
title
,
'Development %s'
%
dev_file
]
if
self
.
_eval
:
headers
.
append
(
'Eval. % s'
%
eval_file
)
...
...
@@ -272,7 +272,7 @@ class Epc(PadPlot):
ylabels
=
prob_ax
.
get_yticks
()
prob_ax
.
yaxis
.
set_ticklabels
([
"%.0f"
%
val
for
val
in
ylabels
])
prob_ax
.
set_axisbelow
(
True
)
title
=
self
.
_
title
s
[
idx
]
if
self
.
_
title
s
is
not
None
else
self
.
_title
title
=
self
.
_
legend
s
[
idx
]
if
self
.
_
legend
s
is
not
None
else
self
.
_title
mpl
.
title
(
title
)
#legends for all axes
self
.
_plot_legends
()
...
...
@@ -310,7 +310,7 @@ class Epsc(PadPlot):
spoof_dev_pos
=
input_scores
[
2
][
1
]
spoof_eval_neg
=
input_scores
[
3
][
0
]
spoof_eval_pos
=
input_scores
[
3
][
1
]
title
=
self
.
_
title
s
[
idx
]
if
self
.
_
title
s
is
not
None
else
None
title
=
self
.
_
legend
s
[
idx
]
if
self
.
_
legend
s
is
not
None
else
None
mpl
.
gcf
().
clear
()
points
=
10
...
...
@@ -419,7 +419,7 @@ class Epsc3D(Epsc):
spoof_eval_neg
=
input_scores
[
3
][
0
]
spoof_eval_pos
=
input_scores
[
3
][
1
]
title
=
self
.
_
title
s
[
idx
]
if
self
.
_
title
s
is
not
None
else
None
title
=
self
.
_
legend
s
[
idx
]
if
self
.
_
legend
s
is
not
None
else
None
mpl
.
rcParams
.
pop
(
'key'
,
None
)
...
...
@@ -666,7 +666,7 @@ class FmrIapmr(PadPlot):
# re-calculate fmr since threshold might give a different result
# for fmr.
fmr_list
[
i
]
=
farfrr
(
licit_eval_neg
,
licit_eval_pos
,
thr
)[
0
]
label
=
self
.
_
title
s
[
idx
]
if
self
.
_
title
s
is
not
None
else
\
label
=
self
.
_
legend
s
[
idx
]
if
self
.
_
legend
s
is
not
None
else
\
'(%s/%s)'
%
(
input_names
[
1
],
input_names
[
3
])
if
self
.
_semilogx
:
mpl
.
semilogx
(
fmr_list
,
iapmr_list
,
label
=
label
)
...
...
bob/pad/base/script/fmr_iapmr.py
View file @
c30bdb46
...
...
@@ -9,7 +9,7 @@ from . import figure
@
click
.
command
()
@
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
.
title
s_option
()
@
common_options
.
legend
s_option
()
@
common_options
.
title_option
()
@
common_options
.
const_layout_option
()
@
common_options
.
style_option
()
...
...
bob/pad/base/script/histograms.py
View file @
c30bdb46
...
...
@@ -16,7 +16,7 @@ from . import figure
@
common_options
.
const_layout_option
()
@
common_options
.
show_dev_option
()
@
common_options
.
print_filenames_option
(
dflt
=
False
)
@
common_options
.
title
s_option
()
@
common_options
.
legend
s_option
()
@
common_options
.
figsize_option
()
@
common_options
.
style_option
()
@
verbosity_option
()
...
...
@@ -63,7 +63,7 @@ def hist(ctx, scores, evaluation, **kwargs):
'If False, will annotate the plots hypothetically, instead '
'of with real data values of the calculated error rates.'
,
True
)
@
common_options
.
title
s_option
()
@
common_options
.
legend
s_option
()
@
common_options
.
figsize_option
()
@
common_options
.
style_option
()
@
verbosity_option
()
...
...
bob/pad/base/script/metrics.py
View file @
c30bdb46
...
...
@@ -13,7 +13,7 @@ from . import figure
@
common_options
.
table_option
()
@
open_file_mode_option
()
@
common_options
.
output_log_metric_option
()
@
common_options
.
title
s_option
()
@
common_options
.
legend
s_option
()
@
verbosity_option
()
@
click
.
pass_context
def
metrics
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
...
Write
Preview
Supports
Markdown
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