DescribeModelVersion - Amazon Lookout for Equipment

DescribeModelVersion

Retrieves information about a specific machine learning model version.

Request Syntax

{ "ModelName": "string", "ModelVersion": number }

Request Parameters

The request accepts the following data in JSON format.

ModelName

The name of the machine learning model that this version belongs to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 200.

Pattern: ^[0-9a-zA-Z_-]{1,200}$

Required: Yes

ModelVersion

The version of the machine learning model.

Type: Long

Valid Range: Minimum value of 1.

Required: Yes

Response Syntax

{ "AutoPromotionResult": "string", "AutoPromotionResultReason": "string", "CreatedAt": number, "DataPreProcessingConfiguration": { "TargetSamplingRate": "string" }, "DatasetArn": "string", "DatasetName": "string", "EvaluationDataEndTime": number, "EvaluationDataStartTime": number, "FailedReason": "string", "ImportedDataSizeInBytes": number, "ImportJobEndTime": number, "ImportJobStartTime": number, "LabelsInputConfiguration": { "LabelGroupName": "string", "S3InputConfiguration": { "Bucket": "string", "Prefix": "string" } }, "LastUpdatedTime": number, "ModelArn": "string", "ModelDiagnosticsOutputConfiguration": { "KmsKeyId": "string", "S3OutputConfiguration": { "Bucket": "string", "Prefix": "string" } }, "ModelDiagnosticsResultsObject": { "Bucket": "string", "Key": "string" }, "ModelMetrics": "string", "ModelName": "string", "ModelQuality": "string", "ModelVersion": number, "ModelVersionArn": "string", "OffCondition": "string", "PriorModelMetrics": "string", "RetrainingAvailableDataInDays": number, "RoleArn": "string", "Schema": "string", "ServerSideKmsKeyId": "string", "SourceModelVersionArn": "string", "SourceType": "string", "Status": "string", "TrainingDataEndTime": number, "TrainingDataStartTime": number, "TrainingExecutionEndTime": number, "TrainingExecutionStartTime": number }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AutoPromotionResult

Indicates whether the model version was promoted to be the active version after retraining or if there was an error with or cancellation of the retraining.

Type: String

Valid Values: MODEL_PROMOTED | MODEL_NOT_PROMOTED | RETRAINING_INTERNAL_ERROR | RETRAINING_CUSTOMER_ERROR | RETRAINING_CANCELLED

AutoPromotionResultReason

Indicates the reason for the AutoPromotionResult. For example, a model might not be promoted if its performance was worse than the active version, if there was an error during training, or if the retraining scheduler was using MANUAL promote mode. The model will be promoted in MANAGED promote mode if the performance is better than the previous model.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

CreatedAt

Indicates the time and date at which the machine learning model version was created.

Type: Timestamp

DataPreProcessingConfiguration

The configuration is the TargetSamplingRate, which is the sampling rate of the data after post processing by Amazon Lookout for Equipment. For example, if you provide data that has been collected at a 1 second level and you want the system to resample the data at a 1 minute rate before training, the TargetSamplingRate is 1 minute.

When providing a value for the TargetSamplingRate, you must attach the prefix "PT" to the rate you want. The value for a 1 second rate is therefore PT1S, the value for a 15 minute rate is PT15M, and the value for a 1 hour rate is PT1H

Type: DataPreProcessingConfiguration object

DatasetArn

The Amazon Resource Name (ARN) of the dataset used to train the model version.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\-]*:[0-9]{12}:dataset\/[0-9a-zA-Z_-]{1,200}\/.+

DatasetName

The name of the dataset used to train the model version.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 200.

Pattern: ^[0-9a-zA-Z_-]{1,200}$

EvaluationDataEndTime

The date on which the data in the evaluation set began being gathered. If you imported the version, this is the date that the evaluation set data in the source version finished being gathered.

Type: Timestamp

EvaluationDataStartTime

The date on which the data in the evaluation set began being gathered. If you imported the version, this is the date that the evaluation set data in the source version began being gathered.

Type: Timestamp

FailedReason

The failure message if the training of the model version failed.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 5000.

Pattern: [\P{M}\p{M}]{1,5000}

ImportedDataSizeInBytes

The size in bytes of the imported data. This field appears if the model version was imported.

Type: Long

Valid Range: Minimum value of 0.

ImportJobEndTime

The date and time when the import job completed. This field appears if the model version was imported.

Type: Timestamp

ImportJobStartTime

The date and time when the import job began. This field appears if the model version was imported.

Type: Timestamp

LabelsInputConfiguration

Contains the configuration information for the S3 location being used to hold label data.

Type: LabelsInputConfiguration object

LastUpdatedTime

Indicates the last time the machine learning model version was updated.

Type: Timestamp

ModelArn

The Amazon Resource Name (ARN) of the parent machine learning model that this version belong to.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\-]*:[0-9]{12}:model\/.+

ModelDiagnosticsOutputConfiguration

The Amazon S3 location where Amazon Lookout for Equipment saves the pointwise model diagnostics for the model version.

Type: ModelDiagnosticsOutputConfiguration object

ModelDiagnosticsResultsObject

Contains the Amazon S3 object path where Amazon Lookout for Equipment writes the model diagnostics results for the model version. The format is User_Provided_Prefix/Model_Name/Model_Version/model_diagnostics_results.json.gz.

User_Provided_Prefix is the prefix that you specify in the ModelDiagnosticsOutputConfiguration request parameter to the CreateModel or UpdateModel operations.

Type: S3Object object

ModelMetrics

Shows an aggregated summary, in JSON format, of the model's performance within the evaluation time range. These metrics are created when evaluating the model.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 50000.

ModelName

The name of the machine learning model that this version belongs to.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 200.

Pattern: ^[0-9a-zA-Z_-]{1,200}$

ModelQuality

Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the model quality is poor based on training metrics, the value is POOR_QUALITY_DETECTED. Otherwise, the value is QUALITY_THRESHOLD_MET.

If the model is unlabeled, the model quality can't be assessed and the value of ModelQuality is CANNOT_DETERMINE_QUALITY. In this situation, you can get a model quality assessment by adding labels to the input dataset and retraining the model.

For information about using labels with your models, see Understanding labeling.

For information about improving the quality of a model, see Best practices with Amazon Lookout for Equipment.

Type: String

Valid Values: QUALITY_THRESHOLD_MET | CANNOT_DETERMINE_QUALITY | POOR_QUALITY_DETECTED

ModelVersion

The version of the machine learning model.

Type: Long

Valid Range: Minimum value of 1.

ModelVersionArn

The Amazon Resource Name (ARN) of the model version.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\-]*:[0-9]{12}:model\/[0-9a-zA-Z_-]{1,200}\/.+\/model-version\/[0-9]{1,}$

OffCondition

Indicates that the asset associated with this sensor has been shut off. As long as this condition is met, Lookout for Equipment will not use data from this asset for training, evaluation, or inference.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

PriorModelMetrics

If the model version was retrained, this field shows a summary of the performance of the prior model on the new training range. You can use the information in this JSON-formatted object to compare the new model version and the prior model version.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 50000.

RetrainingAvailableDataInDays

Indicates the number of days of data used in the most recent scheduled retraining run.

Type: Integer

RoleArn

The Amazon Resource Name (ARN) of the role that was used to train the model version.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+

Schema

The schema of the data used to train the model version.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1000000.

ServerSideKmsKeyId

The identifier of the AWS KMS key key used to encrypt model version data by Amazon Lookout for Equipment.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Pattern: arn:aws[a-z\-]*:kms:[a-z0-9\-]*:\d{12}:[\w\-\/]+

SourceModelVersionArn

If model version was imported, then this field is the arn of the source model version.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\-]*:[0-9]{12}:model\/[0-9a-zA-Z_-]{1,200}\/.+\/model-version\/[0-9]{1,}$

SourceType

Indicates whether this model version was created by training or by importing.

Type: String

Valid Values: TRAINING | RETRAINING | IMPORT

Status

The current status of the model version.

Type: String

Valid Values: IN_PROGRESS | SUCCESS | FAILED | IMPORT_IN_PROGRESS | CANCELED

TrainingDataEndTime

The date on which the training data finished being gathered. If you imported the version, this is the date that the training data in the source version finished being gathered.

Type: Timestamp

TrainingDataStartTime

The date on which the training data began being gathered. If you imported the version, this is the date that the training data in the source version began being gathered.

Type: Timestamp

TrainingExecutionEndTime

The time when the training of the version completed.

Type: Timestamp

TrainingExecutionStartTime

The time when the training of the version began.

Type: Timestamp

Errors

AccessDeniedException

The request could not be completed because you do not have access to the resource.

HTTP Status Code: 400

InternalServerException

Processing of the request has failed because of an unknown error, exception or failure.

HTTP Status Code: 500

ResourceNotFoundException

The resource requested could not be found. Verify the resource ID and retry your request.

HTTP Status Code: 400

ThrottlingException

The request was denied due to request throttling.

HTTP Status Code: 400

ValidationException

The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related AWS service that's being utilized.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: