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

Method deploy_model

data/AutoML/reference_code.py:155–160  ·  view source on GitHub ↗
(self, model: BaseEstimator, model_path: str)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected