Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.measure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.measure
Commits
99cb2a85
Commit
99cb2a85
authored
7 years ago
by
Theophile GENTILHOMME
Browse files
Options
Downloads
Patches
Plain Diff
[script][figure] Change labels
parent
fa4af65e
No related branches found
No related tags found
1 merge request
!78
Metrics
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/measure/script/figure.py
+6
-6
6 additions, 6 deletions
bob/measure/script/figure.py
with
6 additions
and
6 deletions
bob/measure/script/figure.py
+
6
−
6
View file @
99cb2a85
...
@@ -486,7 +486,7 @@ class Roc(PlotBase):
...
@@ -486,7 +486,7 @@ 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
'
False Positive Rate
'
self
.
_x_label
=
self
.
_x_label
or
'
False Positive Rate
'
self
.
_y_label
=
self
.
_y_label
or
"
1 - False Negative Rate
"
self
.
_y_label
=
self
.
_y_label
or
"
1 - False Negative Rate
"
self
.
_semilogx
=
ctx
.
meta
.
get
(
'
semilogx
'
,
True
)
self
.
_semilogx
=
ctx
.
meta
.
get
(
'
semilogx
'
,
True
)
...
@@ -524,7 +524,7 @@ class Roc(PlotBase):
...
@@ -524,7 +524,7 @@ class Roc(PlotBase):
far_values
=
plot
.
log_values
(
self
.
_min_dig
or
-
4
),
far_values
=
plot
.
log_values
(
self
.
_min_dig
or
-
4
),
CAR
=
self
.
_semilogx
,
CAR
=
self
.
_semilogx
,
color
=
self
.
_colors
[
idx
],
color
=
self
.
_colors
[
idx
],
label
=
self
.
_label
(
'
eval
'
,
eval_file
,
idx
)
label
=
self
.
_label
(
'
eval
.
'
,
eval_file
,
idx
)
)
)
if
self
.
_far_at
is
not
None
:
if
self
.
_far_at
is
not
None
:
from
..
import
farfrr
from
..
import
farfrr
...
@@ -550,7 +550,7 @@ class Det(PlotBase):
...
@@ -550,7 +550,7 @@ 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
'
False Positive Rate (%)
'
self
.
_x_label
=
self
.
_x_label
or
'
False Positive Rate (%)
'
self
.
_y_label
=
self
.
_y_label
or
'
False Negative Rate (%)
'
self
.
_y_label
=
self
.
_y_label
or
'
False Negative Rate (%)
'
self
.
_legend_loc
=
self
.
_legend_loc
or
'
upper right
'
self
.
_legend_loc
=
self
.
_legend_loc
or
'
upper right
'
...
@@ -589,7 +589,7 @@ class Det(PlotBase):
...
@@ -589,7 +589,7 @@ class Det(PlotBase):
plot
.
det
(
plot
.
det
(
eval_neg
,
eval_pos
,
self
.
_points
,
color
=
self
.
_colors
[
idx
],
eval_neg
,
eval_pos
,
self
.
_points
,
color
=
self
.
_colors
[
idx
],
linestyle
=
linestyle
,
linestyle
=
linestyle
,
label
=
self
.
_label
(
'
eval
'
,
eval_file
,
idx
)
label
=
self
.
_label
(
'
eval
.
'
,
eval_file
,
idx
)
)
)
if
self
.
_far_at
is
not
None
:
if
self
.
_far_at
is
not
None
:
from
..
import
farfrr
from
..
import
farfrr
...
@@ -617,7 +617,7 @@ class Epc(PlotBase):
...
@@ -617,7 +617,7 @@ class Epc(PlotBase):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
,
hter
=
'
HTER
'
):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
,
hter
=
'
HTER
'
):
super
(
Epc
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
super
(
Epc
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
if
self
.
_min_arg
!=
2
:
if
self
.
_min_arg
!=
2
:
raise
click
.
UsageError
(
"
EPC requires dev and eval score files
"
)
raise
click
.
UsageError
(
"
EPC requires dev
.
and eval
.
score files
"
)
self
.
_titles
=
self
.
_titles
or
[
'
EPC
'
]
*
2
self
.
_titles
=
self
.
_titles
or
[
'
EPC
'
]
*
2
self
.
_x_label
=
self
.
_x_label
or
r
'
$\alpha$
'
self
.
_x_label
=
self
.
_x_label
or
r
'
$\alpha$
'
self
.
_y_label
=
self
.
_y_label
or
hter
+
'
(%)
'
self
.
_y_label
=
self
.
_y_label
or
hter
+
'
(%)
'
...
@@ -715,7 +715,7 @@ class Hist(PlotBase):
...
@@ -715,7 +715,7 @@ class Hist(PlotBase):
int
(
idx
/
self
.
_step_print
)
*
self
.
_step_print
int
(
idx
/
self
.
_step_print
)
*
self
.
_step_print
if
n
+
self
.
_ncols
>=
min
(
self
.
_step_print
,
rest_print
):
if
n
+
self
.
_ncols
>=
min
(
self
.
_step_print
,
rest_print
):
axis
.
set_xlabel
(
self
.
_x_label
)
axis
.
set_xlabel
(
self
.
_x_label
)
dflt_title
=
"
Eval scores
"
if
evaluation
else
"
Dev scores
"
dflt_title
=
"
Eval
.
scores
"
if
evaluation
else
"
Dev
.
scores
"
axis
.
set_title
(
self
.
_get_title
(
idx
,
dflt_title
))
axis
.
set_title
(
self
.
_get_title
(
idx
,
dflt_title
))
label
=
"
%s threshold%s
"
%
(
label
=
"
%s threshold%s
"
%
(
''
if
self
.
_criterion
is
None
else
''
if
self
.
_criterion
is
None
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment