Commit 2fde8bfc authored by Manuel Günther's avatar Manuel Günther

Added min_weighted_error_rate_threshold in test for raised exceptions

parent eea15e3d
Pipeline #6893 passed with stages
in 12 minutes and 56 seconds
...@@ -176,9 +176,9 @@ def test_thresholding(): ...@@ -176,9 +176,9 @@ def test_thresholding():
def test_empty_raises(): def test_empty_raises():
# tests that # tests that
from bob.measure import farfrr, precision_recall, f_score, eer_threshold, min_hter_threshold from bob.measure import farfrr, precision_recall, f_score, eer_threshold, min_hter_threshold, min_weighted_error_rate_threshold
for func in (farfrr, precision_recall, f_score): for func in (farfrr, precision_recall, f_score, min_weighted_error_rate_threshold):
nose.tools.assert_raises(RuntimeError, func, [], [1.], 0) nose.tools.assert_raises(RuntimeError, func, [], [1.], 0)
nose.tools.assert_raises(RuntimeError, func, [1.], [], 0) nose.tools.assert_raises(RuntimeError, func, [1.], [], 0)
nose.tools.assert_raises(RuntimeError, func, [], [], 0) nose.tools.assert_raises(RuntimeError, func, [], [], 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment