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
4b9c47f3
Commit
4b9c47f3
authored
Jun 28, 2018
by
Theophile GENTILHOMME
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[figure] Change labels
parent
2ebcfa54
Pipeline
#21431
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
bob/measure/script/figure.py
bob/measure/script/figure.py
+8
-8
No files found.
bob/measure/script/figure.py
View file @
4b9c47f3
...
@@ -526,8 +526,8 @@ class Roc(PlotBase):
...
@@ -526,8 +526,8 @@ class Roc(PlotBase):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
super
(
Roc
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
super
(
Roc
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
self
.
_titles
=
self
.
_titles
or
[
'ROC dev.'
,
'ROC eval.'
]
self
.
_titles
=
self
.
_titles
or
[
'ROC dev.'
,
'ROC eval.'
]
self
.
_x_label
=
self
.
_x_label
or
'F
alse Positive Rate
'
self
.
_x_label
=
self
.
_x_label
or
'F
PR
'
self
.
_y_label
=
self
.
_y_label
or
"1 - F
alse Negative Rate
"
self
.
_y_label
=
self
.
_y_label
or
"1 - F
NR
"
self
.
_semilogx
=
ctx
.
meta
.
get
(
'semilogx'
,
True
)
self
.
_semilogx
=
ctx
.
meta
.
get
(
'semilogx'
,
True
)
best_legend
=
'lower right'
if
self
.
_semilogx
else
'upper right'
best_legend
=
'lower right'
if
self
.
_semilogx
else
'upper right'
self
.
_legend_loc
=
self
.
_legend_loc
or
best_legend
self
.
_legend_loc
=
self
.
_legend_loc
or
best_legend
...
@@ -590,8 +590,8 @@ class Det(PlotBase):
...
@@ -590,8 +590,8 @@ class Det(PlotBase):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
super
(
Det
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
super
(
Det
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
self
.
_titles
=
self
.
_titles
or
[
'DET dev.'
,
'DET eval.'
]
self
.
_titles
=
self
.
_titles
or
[
'DET dev.'
,
'DET eval.'
]
self
.
_x_label
=
self
.
_x_label
or
'F
alse Positive Rate
(%)'
self
.
_x_label
=
self
.
_x_label
or
'F
PR
(%)'
self
.
_y_label
=
self
.
_y_label
or
'F
alse Negative Rate
(%)'
self
.
_y_label
=
self
.
_y_label
or
'F
NR
(%)'
self
.
_legend_loc
=
self
.
_legend_loc
or
'upper right'
self
.
_legend_loc
=
self
.
_legend_loc
or
'upper right'
if
self
.
_far_at
is
not
None
:
if
self
.
_far_at
is
not
None
:
self
.
_trans_far_val
=
[
ppndf
(
float
(
k
))
for
k
in
self
.
_far_at
]
self
.
_trans_far_val
=
[
ppndf
(
float
(
k
))
for
k
in
self
.
_far_at
]
...
@@ -620,7 +620,7 @@ class Det(PlotBase):
...
@@ -620,7 +620,7 @@ class Det(PlotBase):
plot
.
det
(
plot
.
det
(
dev_neg
,
dev_pos
,
self
.
_points
,
color
=
self
.
_colors
[
idx
],
dev_neg
,
dev_pos
,
self
.
_points
,
color
=
self
.
_colors
[
idx
],
linestyle
=
self
.
_linestyles
[
idx
],
linestyle
=
self
.
_linestyles
[
idx
],
label
=
self
.
_label
(
'dev
elopment
'
,
dev_file
,
idx
)
label
=
self
.
_label
(
'dev
.
'
,
dev_file
,
idx
)
)
)
if
self
.
_split
:
if
self
.
_split
:
mpl
.
figure
(
2
)
mpl
.
figure
(
2
)
...
@@ -643,7 +643,7 @@ class Det(PlotBase):
...
@@ -643,7 +643,7 @@ class Det(PlotBase):
plot
.
det
(
plot
.
det
(
dev_neg
,
dev_pos
,
self
.
_points
,
color
=
self
.
_colors
[
idx
],
dev_neg
,
dev_pos
,
self
.
_points
,
color
=
self
.
_colors
[
idx
],
linestyle
=
self
.
_linestyles
[
idx
],
linestyle
=
self
.
_linestyles
[
idx
],
label
=
self
.
_label
(
'dev
elopment
'
,
dev_file
,
idx
)
label
=
self
.
_label
(
'dev
.
'
,
dev_file
,
idx
)
)
)
def
_set_axis
(
self
):
def
_set_axis
(
self
):
...
@@ -715,8 +715,8 @@ class Hist(PlotBase):
...
@@ -715,8 +715,8 @@ class Hist(PlotBase):
# number of subplot on one page
# number of subplot on one page
self
.
_step_print
=
int
(
self
.
_nrows
*
self
.
_ncols
)
self
.
_step_print
=
int
(
self
.
_nrows
*
self
.
_ncols
)
self
.
_title_base
=
'Scores'
self
.
_title_base
=
'Scores'
self
.
_y_label
=
'Probability density'
self
.
_y_label
=
self
.
_y_label
or
'Probability density'
self
.
_x_label
=
'Score values'
self
.
_x_label
=
self
.
_x_label
or
'Score values'
self
.
_end_setup_plot
=
False
self
.
_end_setup_plot
=
False
# overide _titles of PlotBase
# overide _titles of PlotBase
self
.
_titles
=
ctx
.
meta
.
get
(
'titles'
,
[])
*
2
self
.
_titles
=
ctx
.
meta
.
get
(
'titles'
,
[])
*
2
...
...
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