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
28200 28201 28202 28203 28204 28205 28206 28207 28208 28209 28210 28211 28212 28213 28214 28215 28216 28217 28218 28219 28220 28221 28222 28223 28224 28225 28226 28227 28228 28229 28230 28231 28232 28233 28234 28235 28236 28237 28238 28239 28240 28241 28242 28243 28244 28245 28246 28247 28248 28249 28250 28251 28252 28253 28254 28255 28256 28257 28258 28259 28260 28261 28262 28263 28264 28265 28266 28267 28268 28269 28270 | |