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

Function load_learned_model

uncommon_route/router/classifier.py:68–74  ·  view source on GitHub ↗
(path: str | None = None)

Source from the content-addressed store, hash-verified

66
67
68def load_learned_model(path: str | None = None) -> None:
69 global _model, _model_load_attempted
70 p = Path(path) if path else (Path(__file__).parent / "model.json")
71 if p.exists():
72 _model = ScriptAgnosticClassifier()
73 _model.load(p)
74 _model_load_attempted = True
75
76
77def extract_features(

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95

Tested by

no test coverage detected