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
b50c7650
There was a problem fetching the pipeline summary.
Commit
b50c7650
authored
7 years ago
by
Theophile GENTILHOMME
Browse files
Options
Downloads
Patches
Plain Diff
[script][figure] Add lines for dev histo
parent
e44f79c4
No related branches found
No related tags found
1 merge request
!77
dd lines for dev histograms
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/measure/script/figure.py
+5
-4
5 additions, 4 deletions
bob/measure/script/figure.py
with
5 additions
and
4 deletions
bob/measure/script/figure.py
+
5
−
4
View file @
b50c7650
...
@@ -611,15 +611,15 @@ class Hist(PlotBase):
...
@@ -611,15 +611,15 @@ class Hist(PlotBase):
idx
*=
1
if
self
.
_hide_dev
or
not
self
.
_eval
else
2
idx
*=
1
if
self
.
_hide_dev
or
not
self
.
_eval
else
2
if
not
self
.
_hide_dev
or
not
self
.
_eval
:
if
not
self
.
_hide_dev
or
not
self
.
_eval
:
self
.
_print_subplot
(
idx
,
dev_neg
,
dev_pos
,
threshold
,
False
,
self
.
_print_subplot
(
idx
,
dev_neg
,
dev_pos
,
threshold
,
dflt_title
=
"
Dev scores
"
)
not
self
.
_no_line
,
False
)
idx
+=
1
if
self
.
_eval
and
not
self
.
_hide_dev
else
0
idx
+=
1
if
self
.
_eval
and
not
self
.
_hide_dev
else
0
if
self
.
_eval
:
if
self
.
_eval
:
self
.
_print_subplot
(
idx
,
eval_neg
,
eval_pos
,
threshold
,
self
.
_print_subplot
(
idx
,
eval_neg
,
eval_pos
,
threshold
,
not
self
.
_no_line
,
dflt_title
=
"
Eval scores
"
)
not
self
.
_no_line
,
True
)
def
_print_subplot
(
self
,
idx
,
neg
,
pos
,
threshold
,
draw_line
,
dflt_title
):
def
_print_subplot
(
self
,
idx
,
neg
,
pos
,
threshold
,
draw_line
,
evaluation
):
'''
print a subplot for the given score and subplot index
'''
'''
print a subplot for the given score and subplot index
'''
n
=
idx
%
self
.
_step_print
n
=
idx
%
self
.
_step_print
col
=
n
%
self
.
_ncols
col
=
n
%
self
.
_ncols
...
@@ -633,6 +633,7 @@ class Hist(PlotBase):
...
@@ -633,6 +633,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
"
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