Commit fecf6b35 authored by Manuel Günther's avatar Manuel Günther

Merge branch...

Merge branch '27-far-and-frr-thresholds-are-computed-even-when-there-is-no-data-support' of https://gitlab.idiap.ch/bob/bob.measure into 27-far-and-frr-thresholds-are-computed-even-when-there-is-no-data-support

Conflicts:
	bob/measure/test_error.py
parents 7e6a0704 56f95d3e
Pipeline #14056 failed with stages
in 14 minutes and 45 seconds
......@@ -174,12 +174,10 @@ def test_obvious_thresholds():
far, expected_far = round(far, 2), math.floor(far*10)/10
frr, expected_frr = round(frr, 2), math.floor(frr*10)/10
calculated_far_threshold = far_threshold(neg, pos, far)
predicted_far, _ = farfrr(
neg, pos, calculated_far_threshold)
predicted_far, _ = farfrr(neg, pos, calculated_far_threshold)
calculated_frr_threshold = frr_threshold(neg, pos, frr)
_, predicted_frr = farfrr(
neg, pos, calculated_frr_threshold)
_, predicted_frr = farfrr(neg, pos, calculated_frr_threshold)
assert predicted_far <= far, (predicted_far, far, calculated_far_threshold)
assert predicted_far == expected_far
assert predicted_frr <= frr, (predicted_frr, frr, calculated_frr_threshold)
......
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