(path: str | None = None)
| 66 | |
| 67 | |
| 68 | def 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 | |
| 77 | def extract_features( |
nothing calls this directly
no test coverage detected