update_model_version
¶
update_model_version(
model_id: modelIdentifier,
model_type: ModelTypeEnum,
major_version_number: wholeNumberVersionString,
*,
config_overrides: Optional[FraudDetectorClientConfig] = None,
external_events_detail: Optional[ExternalEventsDetail] = None,
ingested_events_detail: Optional[IngestedEventsDetail] = None,
tags: Optional[tagList] = None,
) -> UpdateModelVersionResult
Updates a model version. Updating a model version retrains an existing model version using updated training data and produces a new minor version of the model. You can update the training data set location and data access role attributes using this action. This action creates and trains a new minor version of the model, for example version 1.01, 1.02, 1.03.
Parameters:
-
model_id(modelIdentifier) –The model ID.
-
model_type(ModelTypeEnum) –The model type.
-
major_version_number(wholeNumberVersionString) –The major version number.
-
external_events_detail(Optional[ExternalEventsDetail], default:None) –The details of the external events data used for training the model version. Required if
trainingDataSourceisEXTERNAL_EVENTS. -
ingested_events_detail(Optional[IngestedEventsDetail], default:None) –The details of the ingested event used for training the model version. Required if your
trainingDataSourceisINGESTED_EVENTS. -
tags(Optional[tagList], default:None) –A collection of key and value pairs.
Raises:
-
AccessDeniedException–An exception indicating Amazon Fraud Detector does not have the needed permissions. This can occur if you submit a request, such as
PutExternalModel, that specifies a role that is not in your account. -
ConflictException–An exception indicating there was a conflict during a delete operation.
-
InternalServerException–An exception indicating an internal server error.
-
ResourceNotFoundException–An exception indicating the specified resource was not found.
-
ThrottlingException–An exception indicating a throttling error.
-
ValidationException–An exception indicating a specified value is not allowed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_frauddetector/_services/fraud_detector.py
4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 | |