Skip to content

Commit b8f8238

Browse files
author
awstools
committed
feat(client-lookoutequipment): This release adds a field exposing model quality to read APIs for models. It also adds a model quality field to the API response when creating an inference scheduler.
1 parent 200c126 commit b8f8238

File tree

8 files changed

+157
-0
lines changed

8 files changed

+157
-0
lines changed

clients/client-lookoutequipment/src/commands/CreateInferenceSchedulerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export interface CreateInferenceSchedulerCommandOutput extends CreateInferenceSc
7878
* // InferenceSchedulerArn: "STRING_VALUE",
7979
* // InferenceSchedulerName: "STRING_VALUE",
8080
* // Status: "PENDING" || "RUNNING" || "STOPPING" || "STOPPED",
81+
* // ModelQuality: "QUALITY_THRESHOLD_MET" || "CANNOT_DETERMINE_QUALITY" || "POOR_QUALITY_DETECTED",
8182
* // };
8283
*
8384
* ```

clients/client-lookoutequipment/src/commands/DescribeModelCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export interface DescribeModelCommandOutput extends DescribeModelResponse, __Met
9898
* // },
9999
* // KmsKeyId: "STRING_VALUE",
100100
* // },
101+
* // ModelQuality: "QUALITY_THRESHOLD_MET" || "CANNOT_DETERMINE_QUALITY" || "POOR_QUALITY_DETECTED",
101102
* // };
102103
*
103104
* ```

clients/client-lookoutequipment/src/commands/DescribeModelVersionCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export interface DescribeModelVersionCommandOutput extends DescribeModelVersionR
9393
* // Bucket: "STRING_VALUE", // required
9494
* // Key: "STRING_VALUE", // required
9595
* // },
96+
* // ModelQuality: "QUALITY_THRESHOLD_MET" || "CANNOT_DETERMINE_QUALITY" || "POOR_QUALITY_DETECTED",
9697
* // };
9798
*
9899
* ```

clients/client-lookoutequipment/src/commands/ListModelVersionsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export interface ListModelVersionsCommandOutput extends ListModelVersionsRespons
6161
* // CreatedAt: new Date("TIMESTAMP"),
6262
* // Status: "IN_PROGRESS" || "SUCCESS" || "FAILED" || "IMPORT_IN_PROGRESS" || "CANCELED",
6363
* // SourceType: "TRAINING" || "RETRAINING" || "IMPORT",
64+
* // ModelQuality: "QUALITY_THRESHOLD_MET" || "CANNOT_DETERMINE_QUALITY" || "POOR_QUALITY_DETECTED",
6465
* // },
6566
* // ],
6667
* // };

clients/client-lookoutequipment/src/commands/ListModelsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export interface ListModelsCommandOutput extends ListModelsResponse, __MetadataB
6969
* // },
7070
* // KmsKeyId: "STRING_VALUE",
7171
* // },
72+
* // ModelQuality: "QUALITY_THRESHOLD_MET" || "CANNOT_DETERMINE_QUALITY" || "POOR_QUALITY_DETECTED",
7273
* // },
7374
* // ],
7475
* // };

clients/client-lookoutequipment/src/models/models_0.ts

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,21 @@ export interface CreateInferenceSchedulerRequest {
473473
Tags?: Tag[];
474474
}
475475

476+
/**
477+
* @public
478+
* @enum
479+
*/
480+
export const ModelQuality = {
481+
CANNOT_DETERMINE_QUALITY: "CANNOT_DETERMINE_QUALITY",
482+
POOR_QUALITY_DETECTED: "POOR_QUALITY_DETECTED",
483+
QUALITY_THRESHOLD_MET: "QUALITY_THRESHOLD_MET",
484+
} as const;
485+
486+
/**
487+
* @public
488+
*/
489+
export type ModelQuality = (typeof ModelQuality)[keyof typeof ModelQuality];
490+
476491
/**
477492
* @public
478493
* @enum
@@ -510,6 +525,23 @@ export interface CreateInferenceSchedulerResponse {
510525
* <p>Indicates the status of the <code>CreateInferenceScheduler</code> operation. </p>
511526
*/
512527
Status?: InferenceSchedulerStatus;
528+
529+
/**
530+
* @public
531+
* <p>Provides a quality assessment for a model that uses labels.
532+
* If Lookout for Equipment determines that the
533+
* model quality is poor based on training metrics, the value is
534+
* <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is
535+
* <code>QUALITY_THRESHOLD_MET</code>. </p>
536+
* <p>If the model is unlabeled, the model quality can't
537+
* be assessed and the value of <code>ModelQuality</code> is
538+
* <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality
539+
* assessment by adding labels to the input dataset and retraining the model.</p>
540+
* <p>For information about using labels with your models, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-labeling.html">Understanding labeling</a>.</p>
541+
* <p>For information about improving the quality of a model, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html">Best practices with
542+
* Amazon Lookout for Equipment</a>.</p>
543+
*/
544+
ModelQuality?: ModelQuality;
513545
}
514546

515547
/**
@@ -2217,6 +2249,22 @@ export interface DescribeModelResponse {
22172249
* <p>Configuration information for the model's pointwise model diagnostics.</p>
22182250
*/
22192251
ModelDiagnosticsOutputConfiguration?: ModelDiagnosticsOutputConfiguration;
2252+
2253+
/**
2254+
* @public
2255+
* <p>Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the
2256+
* model quality is poor based on training metrics, the value is
2257+
* <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is
2258+
* <code>QUALITY_THRESHOLD_MET</code>.</p>
2259+
* <p>If the model is unlabeled, the model quality can't
2260+
* be assessed and the value of <code>ModelQuality</code> is
2261+
* <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality
2262+
* assessment by adding labels to the input dataset and retraining the model.</p>
2263+
* <p>For information about using labels with your models, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-labeling.html">Understanding labeling</a>.</p>
2264+
* <p>For information about improving the quality of a model, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html">Best practices with
2265+
* Amazon Lookout for Equipment</a>.</p>
2266+
*/
2267+
ModelQuality?: ModelQuality;
22202268
}
22212269

22222270
/**
@@ -2493,6 +2541,22 @@ export interface DescribeModelVersionResponse {
24932541
* <p>The Amazon S3 output prefix for where Lookout for Equipment saves the pointwise model diagnostics for the model version.</p>
24942542
*/
24952543
ModelDiagnosticsResultsObject?: S3Object;
2544+
2545+
/**
2546+
* @public
2547+
* <p>Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the
2548+
* model quality is poor based on training metrics, the value is
2549+
* <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is
2550+
* <code>QUALITY_THRESHOLD_MET</code>.</p>
2551+
* <p>If the model is unlabeled, the model quality can't
2552+
* be assessed and the value of <code>ModelQuality</code> is
2553+
* <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality
2554+
* assessment by adding labels to the input dataset and retraining the model.</p>
2555+
* <p>For information about using labels with your models, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-labeling.html">Understanding labeling</a>.</p>
2556+
* <p>For information about improving the quality of a model, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html">Best practices with
2557+
* Amazon Lookout for Equipment</a>.</p>
2558+
*/
2559+
ModelQuality?: ModelQuality;
24962560
}
24972561

24982562
/**
@@ -3717,6 +3781,22 @@ export interface ModelSummary {
37173781
* <p>Output configuration information for the pointwise model diagnostics for an Amazon Lookout for Equipment model.</p>
37183782
*/
37193783
ModelDiagnosticsOutputConfiguration?: ModelDiagnosticsOutputConfiguration;
3784+
3785+
/**
3786+
* @public
3787+
* <p>Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the
3788+
* model quality is poor based on training metrics, the value is
3789+
* <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is
3790+
* <code>QUALITY_THRESHOLD_MET</code>.</p>
3791+
* <p>If the model is unlabeled, the model quality can't
3792+
* be assessed and the value of <code>ModelQuality</code> is
3793+
* <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality
3794+
* assessment by adding labels to the input dataset and retraining the model.</p>
3795+
* <p>For information about using labels with your models, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-labeling.html">Understanding labeling</a>.</p>
3796+
* <p>For information about improving the quality of a model, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html">Best practices with
3797+
* Amazon Lookout for Equipment</a>.</p>
3798+
*/
3799+
ModelQuality?: ModelQuality;
37203800
}
37213801

37223802
/**
@@ -3848,6 +3928,21 @@ export interface ModelVersionSummary {
38483928
* <p>Indicates how this model version was generated.</p>
38493929
*/
38503930
SourceType?: ModelVersionSourceType;
3931+
3932+
/**
3933+
* @public
3934+
* <p>Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the
3935+
* model quality is poor based on training metrics, the value is
3936+
* <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is
3937+
* <code>QUALITY_THRESHOLD_MET</code>. </p>
3938+
* <p>If the model is unlabeled, the model quality can't
3939+
* be assessed and the value of <code>ModelQuality</code> is
3940+
* <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality
3941+
* assessment by adding labels to the input dataset and retraining the model.</p>
3942+
* <p>For information about improving the quality of a model, see <a href="https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html">Best practices with
3943+
* Amazon Lookout for Equipment</a>.</p>
3944+
*/
3945+
ModelQuality?: ModelQuality;
38513946
}
38523947

38533948
/**

clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,7 @@ const de_DescribeModelResponse = (output: any, context: __SerdeContext): Describ
25012501
ModelDiagnosticsOutputConfiguration: _json,
25022502
ModelMetrics: (_: any) => new __LazyJsonString(_),
25032503
ModelName: __expectString,
2504+
ModelQuality: __expectString,
25042505
ModelVersionActivatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
25052506
NextScheduledRetrainingStartDate: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
25062507
OffCondition: __expectString,
@@ -2545,6 +2546,7 @@ const de_DescribeModelVersionResponse = (output: any, context: __SerdeContext):
25452546
ModelDiagnosticsResultsObject: _json,
25462547
ModelMetrics: __expectString,
25472548
ModelName: __expectString,
2549+
ModelQuality: __expectString,
25482550
ModelVersion: __expectLong,
25492551
ModelVersionArn: __expectString,
25502552
OffCondition: __expectString,
@@ -2885,6 +2887,7 @@ const de_ModelSummary = (output: any, context: __SerdeContext): ModelSummary =>
28852887
ModelArn: __expectString,
28862888
ModelDiagnosticsOutputConfiguration: _json,
28872889
ModelName: __expectString,
2890+
ModelQuality: __expectString,
28882891
NextScheduledRetrainingStartDate: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
28892892
RetrainingSchedulerStatus: __expectString,
28902893
Status: __expectString,
@@ -2911,6 +2914,7 @@ const de_ModelVersionSummary = (output: any, context: __SerdeContext): ModelVers
29112914
CreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
29122915
ModelArn: __expectString,
29132916
ModelName: __expectString,
2917+
ModelQuality: __expectString,
29142918
ModelVersion: __expectLong,
29152919
ModelVersionArn: __expectString,
29162920
SourceType: __expectString,

codegen/sdk-codegen/aws-models/lookoutequipment.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,12 @@
12561256
"traits": {
12571257
"smithy.api#documentation": "<p>Indicates the status of the <code>CreateInferenceScheduler</code> operation. </p>"
12581258
}
1259+
},
1260+
"ModelQuality": {
1261+
"target": "com.amazonaws.lookoutequipment#ModelQuality",
1262+
"traits": {
1263+
"smithy.api#documentation": "<p>Provides a quality assessment for a model that uses labels. \n If Lookout for Equipment determines that the\n model quality is poor based on training metrics, the value is\n <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is\n <code>QUALITY_THRESHOLD_MET</code>. </p>\n <p>If the model is unlabeled, the model quality can't\n be assessed and the value of <code>ModelQuality</code> is\n <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality\n assessment by adding labels to the input dataset and retraining the model.</p>\n <p>For information about using labels with your models, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-labeling.html\">Understanding labeling</a>.</p>\n <p>For information about improving the quality of a model, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html\">Best practices with\n Amazon Lookout for Equipment</a>.</p>"
1264+
}
12591265
}
12601266
},
12611267
"traits": {
@@ -3265,6 +3271,12 @@
32653271
"traits": {
32663272
"smithy.api#documentation": "<p>Configuration information for the model's pointwise model diagnostics.</p>"
32673273
}
3274+
},
3275+
"ModelQuality": {
3276+
"target": "com.amazonaws.lookoutequipment#ModelQuality",
3277+
"traits": {
3278+
"smithy.api#documentation": "<p>Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the\n model quality is poor based on training metrics, the value is\n <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is\n <code>QUALITY_THRESHOLD_MET</code>.</p>\n <p>If the model is unlabeled, the model quality can't\n be assessed and the value of <code>ModelQuality</code> is\n <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality\n assessment by adding labels to the input dataset and retraining the model.</p>\n <p>For information about using labels with your models, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-labeling.html\">Understanding labeling</a>.</p>\n <p>For information about improving the quality of a model, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html\">Best practices with\n Amazon Lookout for Equipment</a>.</p>"
3279+
}
32683280
}
32693281
},
32703282
"traits": {
@@ -3522,6 +3534,12 @@
35223534
"traits": {
35233535
"smithy.api#documentation": "<p>The Amazon S3 output prefix for where Lookout for Equipment saves the pointwise model diagnostics for the model version.</p>"
35243536
}
3537+
},
3538+
"ModelQuality": {
3539+
"target": "com.amazonaws.lookoutequipment#ModelQuality",
3540+
"traits": {
3541+
"smithy.api#documentation": "<p>Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the\n model quality is poor based on training metrics, the value is\n <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is\n <code>QUALITY_THRESHOLD_MET</code>.</p>\n <p>If the model is unlabeled, the model quality can't\n be assessed and the value of <code>ModelQuality</code> is\n <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality\n assessment by adding labels to the input dataset and retraining the model.</p>\n <p>For information about using labels with your models, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-labeling.html\">Understanding labeling</a>.</p>\n <p>For information about improving the quality of a model, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html\">Best practices with\n Amazon Lookout for Equipment</a>.</p>"
3542+
}
35253543
}
35263544
},
35273545
"traits": {
@@ -6173,6 +6191,29 @@
61736191
}
61746192
}
61756193
},
6194+
"com.amazonaws.lookoutequipment#ModelQuality": {
6195+
"type": "enum",
6196+
"members": {
6197+
"QUALITY_THRESHOLD_MET": {
6198+
"target": "smithy.api#Unit",
6199+
"traits": {
6200+
"smithy.api#enumValue": "QUALITY_THRESHOLD_MET"
6201+
}
6202+
},
6203+
"CANNOT_DETERMINE_QUALITY": {
6204+
"target": "smithy.api#Unit",
6205+
"traits": {
6206+
"smithy.api#enumValue": "CANNOT_DETERMINE_QUALITY"
6207+
}
6208+
},
6209+
"POOR_QUALITY_DETECTED": {
6210+
"target": "smithy.api#Unit",
6211+
"traits": {
6212+
"smithy.api#enumValue": "POOR_QUALITY_DETECTED"
6213+
}
6214+
}
6215+
}
6216+
},
61766217
"com.amazonaws.lookoutequipment#ModelStatus": {
61776218
"type": "enum",
61786219
"members": {
@@ -6291,6 +6332,12 @@
62916332
},
62926333
"ModelDiagnosticsOutputConfiguration": {
62936334
"target": "com.amazonaws.lookoutequipment#ModelDiagnosticsOutputConfiguration"
6335+
},
6336+
"ModelQuality": {
6337+
"target": "com.amazonaws.lookoutequipment#ModelQuality",
6338+
"traits": {
6339+
"smithy.api#documentation": "<p>Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the\n model quality is poor based on training metrics, the value is\n <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is\n <code>QUALITY_THRESHOLD_MET</code>.</p>\n <p>If the model is unlabeled, the model quality can't\n be assessed and the value of <code>ModelQuality</code> is\n <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality\n assessment by adding labels to the input dataset and retraining the model.</p>\n <p>For information about using labels with your models, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/understanding-labeling.html\">Understanding labeling</a>.</p>\n <p>For information about improving the quality of a model, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html\">Best practices with\n Amazon Lookout for Equipment</a>.</p>"
6340+
}
62946341
}
62956342
},
62966343
"traits": {
@@ -6423,6 +6470,12 @@
64236470
"traits": {
64246471
"smithy.api#documentation": "<p>Indicates how this model version was generated.</p>"
64256472
}
6473+
},
6474+
"ModelQuality": {
6475+
"target": "com.amazonaws.lookoutequipment#ModelQuality",
6476+
"traits": {
6477+
"smithy.api#documentation": "<p>Provides a quality assessment for a model that uses labels. If Lookout for Equipment determines that the\n model quality is poor based on training metrics, the value is\n <code>POOR_QUALITY_DETECTED</code>. Otherwise, the value is\n <code>QUALITY_THRESHOLD_MET</code>. </p>\n <p>If the model is unlabeled, the model quality can't\n be assessed and the value of <code>ModelQuality</code> is\n <code>CANNOT_DETERMINE_QUALITY</code>. In this situation, you can get a model quality\n assessment by adding labels to the input dataset and retraining the model.</p>\n <p>For information about improving the quality of a model, see <a href=\"https://docs.aws.amazon.com/lookout-for-equipment/latest/ug/best-practices.html\">Best practices with\n Amazon Lookout for Equipment</a>.</p>"
6478+
}
64266479
}
64276480
},
64286481
"traits": {

0 commit comments

Comments
 (0)