Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.base
Commits
9338c38a
Commit
9338c38a
authored
Jul 28, 2017
by
Manuel Günther
Browse files
Made print-out for --criterion FAR better
parent
71472508
Pipeline
#11576
passed with stages
in 12 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/script/evaluate.py
View file @
9338c38a
...
...
@@ -270,7 +270,7 @@ def main(command_line_parameters=None):
# apply threshold to development set
far
,
frr
=
bob
.
measure
.
farfrr
(
scores_dev
[
i
][
0
],
scores_dev
[
i
][
1
],
threshold
)
if
args
.
criterion
==
'FAR'
:
print
(
"The FRR at FAR=%
2.3f%%
of the development set of '%s' is %2.3f%% (CAR: %2.3f%%)"
%
(
args
.
far_value
,
args
.
legends
[
i
],
frr
*
100.
,
100.
*
(
1
-
frr
)))
print
(
"The FRR at FAR=%
.1E
of the development set of '%s' is %2.3f%% (CAR: %2.3f%%)"
%
(
args
.
far_value
,
args
.
legends
[
i
],
frr
*
100.
,
100.
*
(
1
-
frr
)))
else
:
print
(
"The %s of the development set of '%s' is %2.3f%%"
%
(
args
.
criterion
,
args
.
legends
[
i
],
(
far
+
frr
)
*
50.
))
# / 2 * 100%
if
args
.
eval_files
:
...
...
Write
Preview
Supports
Markdown
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