Re-generate surrogate model
Note
This method call cannot replace user uploaded model done using add_model_artifact. It can only re-generate a surrogate model
This can be used to re-generate a surrogate model for a model
Input Parameter | Type | Default | Description |
---|---|---|---|
project_id | str | None | A unique identifier for the project. |
model_id | str | None | A unique identifier for the model. |
deployment_params | Optional[fdl.DeploymentParams] | None | Deployment parameters object for tuning the model deployment spec. |
wait | Optional[bool] | True | Whether to wait for async job to finish(True) or return(False). |
PROJECT_ID = 'example_project'
MODEL_ID = 'example_model'
client.update_model_surrogate(
project_id=PROJECT_ID,
model_id=MODEL_ID
)
# with deployment_params
client.update_model_surrogate(
project_id=PROJECT_ID,
model_id=MODEL_ID,
deployment_params=fdl.DeploymentParams(cpu=250, memory=500)
)
Return Type | Description |
---|---|
None | Returns None |