| 150 | return {} |
| 151 | |
| 152 | class ModelDeployer: |
| 153 | |
| 154 | |
| 155 | def deploy_model(self, model: BaseEstimator, model_path: str) -> str: |
| 156 | |
| 157 | timestamp = datetime.now().strftime("%Y%m%d_%H%M%S") |
| 158 | model_filename = f"{model_path}/model_{timestamp}.joblib" |
| 159 | joblib.dump(model, model_filename) |
| 160 | return model_filename |