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
0ef7907e
Commit
0ef7907e
authored
Jun 22, 2018
by
Amir MOHAMMADI
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into 'master'
dd lines for dev histograms See merge request
!77
parents
426c9321
b50c7650
Pipeline
#21278
passed with stages
in 37 minutes and 30 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
bob/measure/script/figure.py
bob/measure/script/figure.py
+5
-4
No files found.
bob/measure/script/figure.py
View file @
0ef7907e
...
...
@@ -611,15 +611,15 @@ class Hist(PlotBase):
idx
*=
1
if
self
.
_hide_dev
or
not
self
.
_eval
else
2
if
not
self
.
_hide_dev
or
not
self
.
_eval
:
self
.
_print_subplot
(
idx
,
dev_neg
,
dev_pos
,
threshold
,
False
,
dflt_title
=
"Dev scores"
)
self
.
_print_subplot
(
idx
,
dev_neg
,
dev_pos
,
threshold
,
not
self
.
_no_line
,
False
)
idx
+=
1
if
self
.
_eval
and
not
self
.
_hide_dev
else
0
if
self
.
_eval
:
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'''
n
=
idx
%
self
.
_step_print
col
=
n
%
self
.
_ncols
...
...
@@ -633,6 +633,7 @@ class Hist(PlotBase):
int
(
idx
/
self
.
_step_print
)
*
self
.
_step_print
if
n
+
self
.
_ncols
>=
min
(
self
.
_step_print
,
rest_print
):
axis
.
set_xlabel
(
self
.
_x_label
)
dflt_title
=
"Eval scores"
if
evaluation
else
"Dev scores"
axis
.
set_title
(
self
.
_get_title
(
idx
,
dflt_title
))
label
=
"%s threshold%s"
%
(
''
if
self
.
_criterion
is
None
else
...
...
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