Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.base
Commits
15961f9f
Commit
15961f9f
authored
6 years ago
by
Theophile GENTILHOMME
Browse files
Options
Downloads
Patches
Plain Diff
[script][figure] Change labels
parent
ca793710
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!167
Various fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/script/figure.py
+6
-6
6 additions, 6 deletions
bob/bio/base/script/figure.py
with
6 additions
and
6 deletions
bob/bio/base/script/figure.py
+
6
−
6
View file @
15961f9f
...
...
@@ -11,8 +11,8 @@ from tabulate import tabulate
class
Roc
(
measure_figure
.
Roc
):
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
'
F
alse Match Rate
'
default_y_label
=
'
1 - F
alse Non Match Rate
'
if
self
.
_semilogx
\
self
.
_x_label
=
ctx
.
meta
.
get
(
'
x_label
'
)
or
'
F
MR
'
default_y_label
=
'
1 - F
NMR
'
if
self
.
_semilogx
\
else
'
False Non Match Rate
'
self
.
_y_label
=
ctx
.
meta
.
get
(
'
y_label
'
)
or
default_y_label
...
...
@@ -20,8 +20,8 @@ class Roc(measure_figure.Roc):
class
Det
(
measure_figure
.
Det
):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
super
(
Det
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
self
.
_x_label
=
ctx
.
meta
.
get
(
'
x_label
'
)
or
'
F
alse Match Rate
(%)
'
self
.
_y_label
=
ctx
.
meta
.
get
(
'
y_label
'
)
or
'
F
alse Non Match Rate
(%)
'
self
.
_x_label
=
ctx
.
meta
.
get
(
'
x_label
'
)
or
'
F
MR
(%)
'
self
.
_y_label
=
ctx
.
meta
.
get
(
'
y_label
'
)
or
'
F
NMR
(%)
'
class
Cmc
(
measure_figure
.
PlotBase
):
...
...
@@ -30,7 +30,7 @@ class Cmc(measure_figure.PlotBase):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
super
(
Cmc
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
self
.
_semilogx
=
ctx
.
meta
.
get
(
'
semilogx
'
,
True
)
self
.
_titles
=
self
.
_titles
or
[
'
CMC dev
'
,
'
CMC eval
'
]
self
.
_titles
=
self
.
_titles
or
[
'
CMC dev
.
'
,
'
CMC eval
.
'
]
self
.
_x_label
=
self
.
_x_label
or
'
Rank
'
self
.
_y_label
=
self
.
_y_label
or
'
Identification rate
'
self
.
_max_R
=
0
...
...
@@ -76,7 +76,7 @@ class Dir(measure_figure.PlotBase):
self
.
_rank
=
ctx
.
meta
.
get
(
'
rank
'
,
1
)
self
.
_titles
=
self
.
_titles
or
[
'
DIR curve
'
]
*
2
self
.
_x_label
=
self
.
_x_label
or
'
False Alarm Rate
'
self
.
_y_label
=
self
.
_y_label
or
'
D
etection and Identification Rate
'
self
.
_y_label
=
self
.
_y_label
or
'
D
IR
'
def
compute
(
self
,
idx
,
input_scores
,
input_names
):
'''
Plot DIR for dev and eval data using
...
...
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