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

Function _load_calibrator_if_exists

scripts/eval_v2.py:58–62  ·  view source on GitHub ↗
(index_dir: Path)

Source from the content-addressed store, hash-verified

56
57
58def _load_calibrator_if_exists(index_dir: Path) -> PlattCalibrator | None:
59 cal_path = index_dir / "calibration_params.json"
60 if cal_path.exists():
61 return load_calibrator(cal_path)
62 return None
63
64
65def make_v2_predictor(risk_tolerance: float, index_dir: Path, signals: int = 2, shadow: bool = True):

Callers 2

mainFunction · 0.90
make_v2_predictorFunction · 0.85

Calls 1

load_calibratorFunction · 0.90

Tested by

no test coverage detected