Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
7cb55536
Commit
7cb55536
authored
Apr 18, 2018
by
Amir MOHAMMADI
Browse files
remove extra things
parent
77cf6e5c
Pipeline
#19146
canceled with stage
in 18 minutes and 50 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
bob/measure/script/commands.py
View file @
7cb55536
...
...
@@ -57,7 +57,6 @@ def metrics(ctx, scores, evaluation, **kwargs):
@
common_options
.
const_layout_option
()
@
common_options
.
figsize_option
()
@
common_options
.
style_option
()
@
common_options
.
const_layout_option
()
@
verbosity_option
()
@
click
.
pass_context
def
roc
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
...
@@ -96,7 +95,6 @@ def roc(ctx, scores, evaluation, **kwargs):
@
common_options
.
const_layout_option
()
@
common_options
.
figsize_option
()
@
common_options
.
style_option
()
@
common_options
.
const_layout_option
()
@
verbosity_option
()
@
click
.
pass_context
def
det
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
...
@@ -130,7 +128,6 @@ def det(ctx, scores, evaluation, **kwargs):
@
common_options
.
y_label_option
()
@
common_options
.
figsize_option
()
@
common_options
.
style_option
()
@
common_options
.
const_layout_option
()
@
verbosity_option
()
@
click
.
pass_context
def
epc
(
ctx
,
scores
,
**
kwargs
):
...
...
@@ -164,7 +161,6 @@ def epc(ctx, scores, **kwargs):
@
common_options
.
titles_option
()
@
common_options
.
figsize_option
()
@
common_options
.
style_option
()
@
common_options
.
const_layout_option
()
@
verbosity_option
()
@
click
.
pass_context
def
hist
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
...
@@ -206,7 +202,6 @@ def hist(ctx, scores, evaluation, **kwargs):
@
common_options
.
const_layout_option
()
@
common_options
.
figsize_option
()
@
common_options
.
style_option
()
@
common_options
.
const_layout_option
()
@
verbosity_option
()
@
click
.
pass_context
def
evaluate
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
...
bob/measure/script/common_options.py
View file @
7cb55536
'''Stores click common options for plots'''
import
pkg_resources
# to make sure bob gets imported properly
import
logging
import
click
from
click.types
import
INT
,
FLOAT
...
...
@@ -293,8 +292,8 @@ def figsize_option(**kwargs):
plt
.
figure
(
figsize
=
ctx
.
meta
[
'figsize'
])
return
value
return
click
.
option
(
'--figsize'
,
help
=
'If given, will run
\
``plt.figure(figsize=figsize)
(f)
``. Example: --fig-size 4,6'
,
'--figsize'
,
help
=
'If given, will run
'
'
``plt.figure(figsize=figsize)``. Example: --fig-size 4,6'
,
callback
=
callback
,
**
kwargs
)(
func
)
return
custom_figsize_option
...
...
bob/measure/script/figure.py
View file @
7cb55536
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