MCPcopy Create free account
hub / github.com/GitsSaikat/PyGen / ModelDeployer

Class ModelDeployer

data/AutoML/reference_code.py:152–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 return {}
151
152class 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

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected