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.pad.base
Commits
f3e6ae8d
Commit
f3e6ae8d
authored
Dec 02, 2016
by
Sushil BHATTACHARJEE
Browse files
bug fix in test program
parent
e3a9a96d
Pipeline
#5683
passed with stages
in 3 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/test/test_PadIsoMetrics.py
View file @
f3e6ae8d
...
...
@@ -20,7 +20,8 @@ def main(command_line_parameters=None):
# PAI_labels = [('mattescreen-photo', 'A'), ('mattescreen-video', 'A'), ('print-fixed', 'A'), ('print-hand','A') ]
rms
=
PadIsoMetrics
.
PadIsoMetrics
()
# PadIsoMetrics(PAI_labels)
#rms = PadIsoMetrics.PadIsoMetrics() # PadIsoMetrics(PAI_labels)
rms
=
PadIsoMetrics
()
devel_dict
=
rms
.
load_scores_hdf5
(
scorefile_devel
)
test_dict
=
rms
.
load_scores_hdf5
(
scorefile_test
)
...
...
@@ -33,9 +34,9 @@ def main(command_line_parameters=None):
print
(
'EER (%%): %.3f%%'
%
eer_devel
)
test_hter
,
test_far
,
test_frr
=
rms
.
hter
(
test_dict
,
threshEER_dev
)
print
" * FAR : %.3f%%"
%
(
100
*
test_far
)
print
" * FRR : %.3f%%"
%
(
100
*
test_frr
)
print
" * HTER: %.3f%%"
%
(
100
*
test_hter
)
print
(
" * FAR : %.3f%%"
%
(
100
*
test_far
)
)
print
(
" * FRR : %.3f%%"
%
(
100
*
test_frr
)
)
print
(
" * HTER: %.3f%%"
%
(
100
*
test_hter
)
)
test_bpcer
=
100.0
*
rms
.
bpcer
(
test_dict
,
threshEER_dev
)
print
(
'BPCER from dict: %.3f%%'
%
test_bpcer
)
...
...
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