Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
ad5bb33c
Commit
ad5bb33c
authored
Feb 22, 2019
by
Saeed SARFJOO
Browse files
fix test of mindcf
parent
0626adb8
Pipeline
#27405
passed with stage
in 14 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/test_error.py
View file @
ad5bb33c
...
...
@@ -501,6 +501,6 @@ def test_mindcf():
th
=
min_weighted_error_rate_threshold
(
negatives
,
positives
,
cost
,
True
)
far
,
frr
=
farfrr
(
negatives
,
positives
,
th
)
mindcf
=
(
cost
*
far
+
(
1
-
cost
)
*
frr
)
*
100
assert
mindcf
<=
1.0
assert
mindcf
<
1.0
+
1e-8
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment