stop_inference_experiment
¶
stop_inference_experiment(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
name: Optional[InferenceExperimentName] = None,
model_variant_actions: Optional[ModelVariantActionMap] = None,
desired_model_variants: Optional[ModelVariantConfigList] = None,
desired_state: Optional[InferenceExperimentStopDesiredState] = None,
reason: Optional[InferenceExperimentStatusReason] = None,
) -> StopInferenceExperimentResponse
Stops an inference experiment.
Parameters:
-
name(Optional[InferenceExperimentName], default:None) –The name of the inference experiment to stop.
-
model_variant_actions(Optional[ModelVariantActionMap], default:None) –Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:
-
Promote- Promote the shadow variant to a production variant -
Remove- Delete the variant -
Retain- Keep the variant as it is
-
-
desired_model_variants(Optional[ModelVariantConfigList], default:None) –An array of
ModelVariantConfigobjects. There is one for each variant that you want to deploy after the inference experiment stops. EachModelVariantConfigdescribes the infrastructure configuration for deploying the corresponding variant. -
desired_state(Optional[InferenceExperimentStopDesiredState], default:None) –The desired state of the experiment after stopping. The possible states are the following:
-
Completed: The experiment completed successfully -
Cancelled: The experiment was canceled
-
-
reason(Optional[InferenceExperimentStatusReason], default:None) –The reason for stopping the experiment.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279 31280 31281 31282 31283 31284 31285 31286 31287 31288 31289 31290 31291 31292 31293 31294 31295 31296 31297 31298 31299 31300 31301 | |