MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_value

Method test_value

tests/metrics/test_compute_froc.py:136–139  ·  view source on GitHub ↗
(self, input_data, thresholds, expected_score)

Source from the content-addressed store, hash-verified

134
135 @parameterized.expand([TEST_CASE_4, TEST_CASE_5])
136 def test_value(self, input_data, thresholds, expected_score):
137 fps_per_image, total_sensitivity = compute_froc_curve_data(**input_data)
138 score = compute_froc_score(fps_per_image, total_sensitivity, thresholds)
139 np.testing.assert_allclose(score, expected_score, rtol=1e-5)
140
141
142if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

compute_froc_curve_dataFunction · 0.90
compute_froc_scoreFunction · 0.90

Tested by

no test coverage detected