phlower.services.predictor.PhlowerPredictor¶
- class phlower.services.predictor.PhlowerPredictor(model_directory, predict_setting, scaling_setting=None, decrypt_key=None)[source]¶
Bases:
object
Methods
__init__
(model_directory, predict_setting[, ...])from_pathes
(model_directory, ...[, ...])Create PhlowerPredictor from pathes
predict
()- Parameters:
model_directory (pathlib.Path | str)
predict_setting (PhlowerPredictorSetting)
scaling_setting (PhlowerSetting | None)
decrypt_key (bytes | None)
- classmethod from_pathes(model_directory, predict_setting_yaml, scaling_setting_yaml=None, decrypt_key=None)[source]¶
Create PhlowerPredictor from pathes
- Parameters:
model_directory (Path | str) – pathlib.Path | str Model directory
predict_setting_yaml (Path) – pathlib.Path Predict setting yaml file
scaling_setting_yaml (Path | None) – pathlib.Path | None Scaling setting yaml file. Defaults to None.
decrypt_key (bytes | None) – bytes | None Decrypt key. Defaults to None.
- Returns:
PhlowerPredictor
- Return type: