()
| 8 | |
| 9 | |
| 10 | def test_platt_calibrator_identity(): |
| 11 | cal = PlattCalibrator(temperature=1.0) |
| 12 | assert abs(cal.calibrate(0.5) - 0.5) < 0.01 |
| 13 | assert abs(cal.calibrate(0.9) - 0.9) < 0.05 |
| 14 | |
| 15 | |
| 16 | def test_platt_calibrator_high_temp_compresses(): |
nothing calls this directly
no test coverage detected