(model: LazyModel, config_path: Path)
| 144 | |
| 145 | @staticmethod |
| 146 | def loadPredictorJson(model: LazyModel, config_path: Path) -> PredictorParams: |
| 147 | config = json.load(open(config_path)) |
| 148 | return PredictorParams( |
| 149 | sparse_threshold = config.get("sparse_threshold"), |
| 150 | ) |
| 151 | |
| 152 | @staticmethod |
| 153 | def load(model_plus: ModelPlus) -> PredictorParams: |
no test coverage detected