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

Function save_calibrator

uncommon_route/decision/calibration.py:61–64  ·  view source on GitHub ↗
(cal: PlattCalibrator, path: Path)

Source from the content-addressed store, hash-verified

59
60
61def save_calibrator(cal: PlattCalibrator, path: Path) -> None:
62 path.parent.mkdir(parents=True, exist_ok=True)
63 with open(path, "w") as f:
64 json.dump({"temperature": cal.temperature, "version": 1}, f)
65
66
67def load_calibrator(path: Path) -> PlattCalibrator:

Callers 2

mainFunction · 0.90

Calls 1

openFunction · 0.85

Tested by 1