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
1dbb8817
Commit
1dbb8817
authored
Apr 18, 2018
by
Theophile GENTILHOMME
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'theo-cli' of gitlab.idiap.ch:bob/bob.measure into theo-cli
parents
88e40fa0
0a362831
Pipeline
#19149
passed with stage
in 33 minutes and 35 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
bob/measure/script/common_options.py
bob/measure/script/common_options.py
+1
-1
bob/measure/script/figure.py
bob/measure/script/figure.py
+2
-2
bob/measure/utils.py
bob/measure/utils.py
+1
-4
No files found.
bob/measure/script/common_options.py
View file @
1dbb8817
...
...
@@ -406,7 +406,7 @@ def style_option(**kwargs):
plt
.
style
.
use
(
value
)
return
value
return
click
.
option
(
'--style'
,
multiple
=
True
,
type
=
click
.
types
.
Choice
(
plt
.
style
.
available
),
'--style'
,
multiple
=
True
,
type
=
click
.
types
.
Choice
(
sorted
(
plt
.
style
.
available
)
),
help
=
'The matplotlib style to use for plotting. You can provide '
'multiple styles by repeating this option'
,
callback
=
callback
,
**
kwargs
)(
func
)
...
...
bob/measure/script/figure.py
View file @
1dbb8817
...
...
@@ -670,8 +670,8 @@ class Hist(PlotBase):
def
_setup_hist
(
self
,
neg
,
pos
):
''' This function can be overwritten in derived classes'''
self
.
_density_hist
(
pos
,
label
=
'Positives'
,
alpha
=
0.5
,
color
=
'
blue
'
,
**
self
.
_kwargs
pos
,
label
=
'Positives'
,
alpha
=
0.5
,
color
=
'
C0
'
,
**
self
.
_kwargs
)
self
.
_density_hist
(
neg
,
label
=
'Negatives'
,
alpha
=
0.5
,
color
=
'
red
'
,
**
self
.
_kwargs
neg
,
label
=
'Negatives'
,
alpha
=
0.5
,
color
=
'
C3
'
,
**
self
.
_kwargs
)
bob/measure/utils.py
View file @
1dbb8817
...
...
@@ -104,10 +104,7 @@ def get_colors(n):
cmap
=
pyplot
.
cm
.
get_cmap
(
name
=
'magma'
)
return
[
cmap
(
i
)
for
i
in
numpy
.
linspace
(
0
,
1.0
,
n
+
1
)]
# matplotlib 2.0 default color cycler list: Vega category10 palette
return
[
'#1f77b4'
,
'#ff7f0e'
,
'#2ca02c'
,
'#d62728'
,
'#9467bd'
,
'#8c564b'
,
'#e377c2'
,
'#7f7f7f'
,
'#bcbd22'
,
'#17becf'
]
return
[
'C0'
,
'C1'
,
'C2'
,
'C3'
,
'C4'
,
'C5'
,
'C6'
,
'C7'
,
'C8'
,
'C9'
]
def
confidence_for_indicator_variable
(
x
,
n
,
alpha
=
0.05
):
'''Calculates the confidence interval for proportion estimates
...
...
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