MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_save_load_calibrator

Function test_save_load_calibrator

tests/test_calibration.py:35–40  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

33
34
35def test_save_load_calibrator(tmp_path):
36 cal = PlattCalibrator(temperature=1.5)
37 path = tmp_path / "calibration.json"
38 save_calibrator(cal, path)
39 loaded = load_calibrator(path)
40 assert abs(loaded.temperature - 1.5) < 0.001

Callers

nothing calls this directly

Calls 3

PlattCalibratorClass · 0.90
save_calibratorFunction · 0.90
load_calibratorFunction · 0.90

Tested by

no test coverage detected