Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
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.bio.base
Commits
5bc46629
Commit
5bc46629
authored
6 years ago
by
Theophile GENTILHOMME
Browse files
Options
Downloads
Patches
Plain Diff
Change to
parent
28fe857f
No related branches found
No related tags found
1 merge request
!146
Add 4-5-col files related functionalities and add click commands
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/bio/base/script/commands.py
+1
-1
1 addition, 1 deletion
bob/bio/base/script/commands.py
bob/bio/base/test/test_commands.py
+8
-8
8 additions, 8 deletions
bob/bio/base/test/test_commands.py
doc/experiments.rst
+2
-2
2 additions, 2 deletions
doc/experiments.rst
with
11 additions
and
11 deletions
bob/bio/base/script/commands.py
+
1
−
1
View file @
5bc46629
...
@@ -302,7 +302,7 @@ def hist(ctx, scores, evaluation, **kwargs):
...
@@ -302,7 +302,7 @@ def hist(ctx, scores, evaluation, **kwargs):
$ bob bio hist dev-scores1 eval-scores1 dev-scores2
$ bob bio hist dev-scores1 eval-scores1 dev-scores2
eval-scores2
eval-scores2
$ bob bio hist --criter --show-dev hter dev-scores1 eval-scores1
$ bob bio hist --criter
ion
--show-dev hter dev-scores1 eval-scores1
"""
"""
process
=
bio_figure
.
Hist
(
ctx
,
scores
,
evaluation
,
load
.
split
)
process
=
bio_figure
.
Hist
(
ctx
,
scores
,
evaluation
,
load
.
split
)
process
.
run
()
process
.
run
()
...
...
This diff is collapsed.
Click to expand it.
bob/bio/base/test/test_commands.py
+
8
−
8
View file @
5bc46629
...
@@ -45,7 +45,7 @@ def test_metrics():
...
@@ -45,7 +45,7 @@ def test_metrics():
with
runner
.
isolated_filesystem
():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
result
=
runner
.
invoke
(
commands
.
metrics
,
[
'
-l
'
,
'
tmp
'
,
'
-T
'
,
'
0.1
'
,
commands
.
metrics
,
[
'
-l
'
,
'
tmp
'
,
'
-T
'
,
'
0.1
'
,
'
--criter
'
,
'
mindcf
'
,
'
--cost
'
,
0.9
,
'
--criter
ion
'
,
'
mindcf
'
,
'
--cost
'
,
0.9
,
dev1
,
test2
]
dev1
,
test2
]
)
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
...
@@ -53,34 +53,34 @@ def test_metrics():
...
@@ -53,34 +53,34 @@ def test_metrics():
with
runner
.
isolated_filesystem
():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
result
=
runner
.
invoke
(
commands
.
metrics
,
[
'
--no-evaluation
'
,
'
-l
'
,
'
tmp
'
,
commands
.
metrics
,
[
'
--no-evaluation
'
,
'
-l
'
,
'
tmp
'
,
'
--criter
'
,
'
mindcf
'
,
'
--cost
'
,
0.9
,
'
--criter
ion
'
,
'
mindcf
'
,
'
--cost
'
,
0.9
,
dev1
]
dev1
]
)
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
result
=
runner
.
invoke
(
commands
.
metrics
,
[
'
--criter
'
,
'
cllr
'
,
dev1
,
test2
]
commands
.
metrics
,
[
'
--criter
ion
'
,
'
cllr
'
,
dev1
,
test2
]
)
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
result
=
runner
.
invoke
(
commands
.
metrics
,
[
'
--no-evaluation
'
,
'
-l
'
,
'
tmp
'
,
'
--criter
'
,
'
cllr
'
,
commands
.
metrics
,
[
'
--no-evaluation
'
,
'
-l
'
,
'
tmp
'
,
'
--criter
ion
'
,
'
cllr
'
,
'
--cost
'
,
0.9
,
dev1
]
'
--cost
'
,
0.9
,
dev1
]
)
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
result
=
runner
.
invoke
(
commands
.
metrics
,
[
'
--criter
'
,
'
rr
'
,
'
-T
'
,
commands
.
metrics
,
[
'
--criter
ion
'
,
'
rr
'
,
'
-T
'
,
'
0.1
'
,
dev1
,
test2
]
'
0.1
'
,
dev1
,
test2
]
)
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
result
=
runner
.
invoke
(
commands
.
metrics
,
[
'
--no-evaluation
'
,
'
-l
'
,
'
tmp
'
,
'
--criter
'
,
'
rr
'
,
commands
.
metrics
,
[
'
--no-evaluation
'
,
'
-l
'
,
'
tmp
'
,
'
--criter
ion
'
,
'
rr
'
,
dev1
,
dev2
]
dev1
,
dev2
]
)
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
...
@@ -189,7 +189,7 @@ def test_hist():
...
@@ -189,7 +189,7 @@ def test_hist():
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
hist
,
[
'
--criter
'
,
'
hter
'
,
'
--output
'
,
result
=
runner
.
invoke
(
commands
.
hist
,
[
'
--criter
ion
'
,
'
hter
'
,
'
--output
'
,
'
HISTO.pdf
'
,
'
-b
'
,
'
HISTO.pdf
'
,
'
-b
'
,
30
,
'
--no-evaluation
'
,
dev1
,
dev2
])
30
,
'
--no-evaluation
'
,
dev1
,
dev2
])
if
result
.
output
:
if
result
.
output
:
...
@@ -197,7 +197,7 @@ def test_hist():
...
@@ -197,7 +197,7 @@ def test_hist():
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
assert
result
.
exit_code
==
0
,
(
result
.
exit_code
,
result
.
output
)
with
runner
.
isolated_filesystem
():
with
runner
.
isolated_filesystem
():
result
=
runner
.
invoke
(
commands
.
hist
,
[
'
--criter
'
,
'
eer
'
,
'
--output
'
,
result
=
runner
.
invoke
(
commands
.
hist
,
[
'
--criter
ion
'
,
'
eer
'
,
'
--output
'
,
'
HISTO.pdf
'
,
'
-b
'
,
30
,
'
HISTO.pdf
'
,
'
-b
'
,
30
,
'
-ts
'
,
'
A,B
'
,
dev1
,
test1
,
dev2
,
'
-ts
'
,
'
A,B
'
,
dev1
,
test1
,
dev2
,
test2
])
test2
])
...
...
This diff is collapsed.
Click to expand it.
doc/experiments.rst
+
2
−
2
View file @
5bc46629
...
@@ -170,7 +170,7 @@ min.HTER) on a development set and apply it on an evaluation set, just do:
...
@@ -170,7 +170,7 @@ min.HTER) on a development set and apply it on an evaluation set, just do:
.. code-block:: sh
.. code-block:: sh
$ bob bio metrics {dev,test}-4col.txt --titltes ExpA --criter hter
$ bob bio metrics {dev,test}-4col.txt --titltes ExpA --criter
ion
hter
[Min. criterion: HTER ] Threshold on Development set `ExpA`: -4.830500e-03
[Min. criterion: HTER ] Threshold on Development set `ExpA`: -4.830500e-03
====== ====================== =================
====== ====================== =================
...
@@ -194,7 +194,7 @@ For example:
...
@@ -194,7 +194,7 @@ For example:
.. code-block:: sh
.. code-block:: sh
bob bio metrics {dev,test}-4col.txt --titltes ExpA --criter cllr
bob bio metrics {dev,test}-4col.txt --titltes ExpA --criter
ion
cllr
====== ====================== ================
====== ====================== ================
Computing Cllr and minCllr...
Computing Cllr and minCllr...
...
...
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