client.update_model_surrogate

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 ParameterTypeDefaultDescription
project_idstrNoneA unique identifier for the project.
model_idstrNoneA unique identifier for the model.
deployment_paramsOptional[fdl.DeploymentParams]NoneDeployment parameters object for tuning the model deployment spec.
waitOptional[bool]TrueWhether 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 TypeDescription
NoneReturns None