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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.measure
Commits
7cb55536
There was a problem fetching the pipeline summary.
Commit
7cb55536
authored
7 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
remove extra things
parent
77cf6e5c
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!54
Refactors the score loading and scripts functionality
,
!52
generic plotting script for bob measure
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/measure/script/commands.py
+2
-7
2 additions, 7 deletions
bob/measure/script/commands.py
bob/measure/script/common_options.py
+2
-3
2 additions, 3 deletions
bob/measure/script/common_options.py
bob/measure/script/figure.py
+1
-1
1 addition, 1 deletion
bob/measure/script/figure.py
with
5 additions
and
11 deletions
bob/measure/script/commands.py
+
2
−
7
View file @
7cb55536
...
@@ -57,7 +57,6 @@ def metrics(ctx, scores, evaluation, **kwargs):
...
@@ -57,7 +57,6 @@ def metrics(ctx, scores, evaluation, **kwargs):
@common_options.const_layout_option
()
@common_options.const_layout_option
()
@common_options.figsize_option
()
@common_options.figsize_option
()
@common_options.style_option
()
@common_options.style_option
()
@common_options.const_layout_option
()
@verbosity_option
()
@verbosity_option
()
@click.pass_context
@click.pass_context
def
roc
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
def
roc
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
@@ -96,7 +95,6 @@ def roc(ctx, scores, evaluation, **kwargs):
...
@@ -96,7 +95,6 @@ def roc(ctx, scores, evaluation, **kwargs):
@common_options.const_layout_option
()
@common_options.const_layout_option
()
@common_options.figsize_option
()
@common_options.figsize_option
()
@common_options.style_option
()
@common_options.style_option
()
@common_options.const_layout_option
()
@verbosity_option
()
@verbosity_option
()
@click.pass_context
@click.pass_context
def
det
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
def
det
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
@@ -130,7 +128,6 @@ def det(ctx, scores, evaluation, **kwargs):
...
@@ -130,7 +128,6 @@ def det(ctx, scores, evaluation, **kwargs):
@common_options.y_label_option
()
@common_options.y_label_option
()
@common_options.figsize_option
()
@common_options.figsize_option
()
@common_options.style_option
()
@common_options.style_option
()
@common_options.const_layout_option
()
@verbosity_option
()
@verbosity_option
()
@click.pass_context
@click.pass_context
def
epc
(
ctx
,
scores
,
**
kwargs
):
def
epc
(
ctx
,
scores
,
**
kwargs
):
...
@@ -164,7 +161,6 @@ def epc(ctx, scores, **kwargs):
...
@@ -164,7 +161,6 @@ def epc(ctx, scores, **kwargs):
@common_options.titles_option
()
@common_options.titles_option
()
@common_options.figsize_option
()
@common_options.figsize_option
()
@common_options.style_option
()
@common_options.style_option
()
@common_options.const_layout_option
()
@verbosity_option
()
@verbosity_option
()
@click.pass_context
@click.pass_context
def
hist
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
def
hist
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
@@ -175,9 +171,9 @@ def hist(ctx, scores, evaluation, **kwargs):
...
@@ -175,9 +171,9 @@ def hist(ctx, scores, evaluation, **kwargs):
You can also provide evaluation files along with dev files. If only dev scores
You can also provide evaluation files along with dev files. If only dev scores
are provided, you must use flag `--no-evaluation`.
are provided, you must use flag `--no-evaluation`.
By default, when eval-scores are given, only eval-scores histograms are
By default, when eval-scores are given, only eval-scores histograms are
displayed with threshold line
displayed with threshold line
computed from dev-scores. If you want to display dev-scores distributions
computed from dev-scores. If you want to display dev-scores distributions
as well, use ``--show-dev`` option.
as well, use ``--show-dev`` option.
Examples:
Examples:
...
@@ -206,7 +202,6 @@ def hist(ctx, scores, evaluation, **kwargs):
...
@@ -206,7 +202,6 @@ def hist(ctx, scores, evaluation, **kwargs):
@common_options.const_layout_option
()
@common_options.const_layout_option
()
@common_options.figsize_option
()
@common_options.figsize_option
()
@common_options.style_option
()
@common_options.style_option
()
@common_options.const_layout_option
()
@verbosity_option
()
@verbosity_option
()
@click.pass_context
@click.pass_context
def
evaluate
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
def
evaluate
(
ctx
,
scores
,
evaluation
,
**
kwargs
):
...
...
This diff is collapsed.
Click to expand it.
bob/measure/script/common_options.py
+
2
−
3
View file @
7cb55536
'''
Stores click common options for plots
'''
'''
Stores click common options for plots
'''
import
pkg_resources
# to make sure bob gets imported properly
import
logging
import
logging
import
click
import
click
from
click.types
import
INT
,
FLOAT
from
click.types
import
INT
,
FLOAT
...
@@ -293,8 +292,8 @@ def figsize_option(**kwargs):
...
@@ -293,8 +292,8 @@ def figsize_option(**kwargs):
plt
.
figure
(
figsize
=
ctx
.
meta
[
'
figsize
'
])
plt
.
figure
(
figsize
=
ctx
.
meta
[
'
figsize
'
])
return
value
return
value
return
click
.
option
(
return
click
.
option
(
'
--figsize
'
,
help
=
'
If given, will run
\
'
--figsize
'
,
help
=
'
If given, will run
'
``plt.figure(figsize=figsize)
(f)
``. Example: --fig-size 4,6
'
,
'
``plt.figure(figsize=figsize)``. Example: --fig-size 4,6
'
,
callback
=
callback
,
**
kwargs
)(
func
)
callback
=
callback
,
**
kwargs
)(
func
)
return
custom_figsize_option
return
custom_figsize_option
...
...
This diff is collapsed.
Click to expand it.
bob/measure/script/figure.py
+
1
−
1
View file @
7cb55536
...
@@ -488,7 +488,7 @@ class Det(PlotBase):
...
@@ -488,7 +488,7 @@ class Det(PlotBase):
'''
Handles the plotting of DET
'''
'''
Handles the plotting of DET
'''
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
):
super
(
Det
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
super
(
Det
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
)
self
.
_title
=
self
.
_title
or
'
DET
'
self
.
_title
=
self
.
_title
or
'
DET
'
self
.
_x_label
=
self
.
_x_label
or
'
False Positive Rate
'
self
.
_x_label
=
self
.
_x_label
or
'
False Positive Rate
'
self
.
_y_label
=
self
.
_y_label
or
'
False Negative Rate
'
self
.
_y_label
=
self
.
_y_label
or
'
False Negative Rate
'
#custom defaults here
#custom defaults here
...
...
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