(index_dir: Path)
| 56 | |
| 57 | |
| 58 | def _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 | |
| 65 | def make_v2_predictor(risk_tolerance: float, index_dir: Path, signals: int = 2, shadow: bool = True): |
no test coverage detected