Beispiel #1
0
 def test_invalid_target(cid_grade_predictor: CID) -> None:
     with pytest.raises(KeyError):
         admits_voi(cid_grade_predictor, "P", "_")
Beispiel #2
0
 def test_no_voi_grade_predictor(cid_grade_predictor: CID) -> None:
     assert not admits_voi(cid_grade_predictor, "P", "Ge")
Beispiel #3
0
 def test_invalid_decision(cid_grade_predictor: CID) -> None:
     with pytest.raises(KeyError):
         admits_voi(cid_grade_predictor, "_", "Ge")
Beispiel #4
0
 def test_has_voi_introduced_bias(cid_introduced_bias: CID) -> None:
     assert admits_voi(cid_introduced_bias, "D", "A")