Accept Types¶
This module is for SageMaker accept types.
-
sagemaker.accept_types.
retrieve_options
(region=None, model_id=None, model_version=None, tolerate_vulnerable_model=False, tolerate_deprecated_model=False)¶ Retrieves the supported accept types for the model matching the given arguments.
- Parameters
region (str) – The AWS Region for which to retrieve the supported accept types. Defaults to
None
.model_id (str) – The model ID of the model for which to retrieve the supported accept types. (Default: None).
model_version (str) – The version of the model for which to retrieve the supported accept types. (Default: None).
tolerate_vulnerable_model (bool) – True if vulnerable versions of model specifications should be tolerated (exception not raised). If False, raises an exception if the script used by this version of the model has dependencies with known security vulnerabilities. (Default: False).
tolerate_deprecated_model (bool) – True if deprecated models should be tolerated (exception not raised). False if these models should raise an exception. (Default: False).
- Returns
The supported accept types to use for the model.
- Return type
- Raises
ValueError – If the combination of arguments specified is not supported.
-
sagemaker.accept_types.
retrieve_default
(region=None, model_id=None, model_version=None, tolerate_vulnerable_model=False, tolerate_deprecated_model=False)¶ Retrieves the default accept type for the model matching the given arguments.
- Parameters
region (str) – The AWS Region for which to retrieve the default accept type. Defaults to
None
.model_id (str) – The model ID of the model for which to retrieve the default accept type. (Default: None).
model_version (str) – The version of the model for which to retrieve the default accept type. (Default: None).
tolerate_vulnerable_model (bool) – True if vulnerable versions of model specifications should be tolerated (exception not raised). If False, raises an exception if the script used by this version of the model has dependencies with known security vulnerabilities. (Default: False).
tolerate_deprecated_model (bool) – True if deprecated models should be tolerated (exception not raised). False if these models should raise an exception. (Default: False).
- Returns
The default accept type to use for the model.
- Return type
- Raises
ValueError – If the combination of arguments specified is not supported.