Skip to content

Commit 417ad38

Browse files
author
awstools
committed
feat(client-sagemaker): SageMaker Autopilot adds new metrics for all candidate models generated by Autopilot experiments; RStudio on SageMaker now allows users to bring your own development environment in a custom image.
1 parent a775394 commit 417ad38

File tree

8 files changed

+200
-72
lines changed

8 files changed

+200
-72
lines changed

clients/client-sagemaker/src/commands/CreateImageVersionCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import {
1111
SerdeContext as __SerdeContext,
1212
} from "@aws-sdk/types";
1313

14-
import { CreateImageVersionRequest } from "../models/models_0";
15-
import { CreateImageVersionResponse } from "../models/models_1";
14+
import { CreateImageVersionRequest, CreateImageVersionResponse } from "../models/models_1";
1615
import {
1716
deserializeAws_json1_1CreateImageVersionCommand,
1817
serializeAws_json1_1CreateImageVersionCommand,

clients/client-sagemaker/src/commands/ListTagsCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import {
1111
SerdeContext as __SerdeContext,
1212
} from "@aws-sdk/types";
1313

14-
import { ListTagsInput, ListTagsOutput } from "../models/models_2";
14+
import { ListTagsInput } from "../models/models_2";
15+
import { ListTagsOutput } from "../models/models_3";
1516
import { deserializeAws_json1_1ListTagsCommand, serializeAws_json1_1ListTagsCommand } from "../protocols/Aws_json1_1";
1617
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
1718

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

Lines changed: 34 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4217,6 +4217,23 @@ export enum MetricSetSource {
42174217
VALIDATION = "Validation",
42184218
}
42194219

4220+
export enum AutoMLMetricExtendedEnum {
4221+
ACCURACY = "Accuracy",
4222+
AUC = "AUC",
4223+
BALANCED_ACCURACY = "BalancedAccuracy",
4224+
F1 = "F1",
4225+
F1_MACRO = "F1macro",
4226+
LogLoss = "LogLoss",
4227+
MAE = "MAE",
4228+
MSE = "MSE",
4229+
PRECISION = "Precision",
4230+
PRECISION_MACRO = "PrecisionMacro",
4231+
R2 = "R2",
4232+
RECALL = "Recall",
4233+
RECALL_MACRO = "RecallMacro",
4234+
RMSE = "RMSE",
4235+
}
4236+
42204237
/**
42214238
* <p>Information about the metric for a candidate produced by an AutoML job.</p>
42224239
*/
@@ -4235,6 +4252,11 @@ export interface MetricDatum {
42354252
* <p>The dataset split from which the AutoML job produced the metric.</p>
42364253
*/
42374254
Set?: MetricSetSource | string;
4255+
4256+
/**
4257+
* <p>The name of the standard metric.</p>
4258+
*/
4259+
StandardMetricName?: AutoMLMetricExtendedEnum | string;
42384260
}
42394261

42404262
export namespace MetricDatum {
@@ -8990,7 +9012,18 @@ export namespace KernelGatewayAppSettings {
89909012
/**
89919013
* <p>A collection of settings that apply to an <code>RSessionGateway</code> app.</p>
89929014
*/
8993-
export interface RSessionAppSettings {}
9015+
export interface RSessionAppSettings {
9016+
/**
9017+
* <p>Specifies the ARN's of a SageMaker image and SageMaker image version, and the instance type that
9018+
* the version runs on.</p>
9019+
*/
9020+
DefaultResourceSpec?: ResourceSpec;
9021+
9022+
/**
9023+
* <p>A list of custom SageMaker images that are configured to run as a RSession app.</p>
9024+
*/
9025+
CustomImages?: CustomImage[];
9026+
}
89949027

89959028
export namespace RSessionAppSettings {
89969029
/**
@@ -11909,34 +11942,3 @@ export namespace CreateImageResponse {
1190911942
...obj,
1191011943
});
1191111944
}
11912-
11913-
export interface CreateImageVersionRequest {
11914-
/**
11915-
* <p>The registry path of the container image to use as the starting point for this
11916-
* version. The path is an Amazon Elastic Container Registry (ECR) URI in the following format:</p>
11917-
* <p>
11918-
* <code><acct-id>.dkr.ecr.<region>.amazonaws.com/<repo-name[:tag] or [@digest]></code>
11919-
* </p>
11920-
*/
11921-
BaseImage: string | undefined;
11922-
11923-
/**
11924-
* <p>A unique ID. If not specified, the Amazon Web Services CLI and Amazon Web Services SDKs, such as the SDK for Python
11925-
* (Boto3), add a unique value to the call.</p>
11926-
*/
11927-
ClientToken?: string;
11928-
11929-
/**
11930-
* <p>The <code>ImageName</code> of the <code>Image</code> to create a version of.</p>
11931-
*/
11932-
ImageName: string | undefined;
11933-
}
11934-
11935-
export namespace CreateImageVersionRequest {
11936-
/**
11937-
* @internal
11938-
*/
11939-
export const filterSensitiveLog = (obj: CreateImageVersionRequest): any => ({
11940-
...obj,
11941-
});
11942-
}

clients/client-sagemaker/src/models/models_1.ts

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,37 @@ import {
104104
VpcConfig,
105105
} from "./models_0";
106106

107+
export interface CreateImageVersionRequest {
108+
/**
109+
* <p>The registry path of the container image to use as the starting point for this
110+
* version. The path is an Amazon Elastic Container Registry (ECR) URI in the following format:</p>
111+
* <p>
112+
* <code><acct-id>.dkr.ecr.<region>.amazonaws.com/<repo-name[:tag] or [@digest]></code>
113+
* </p>
114+
*/
115+
BaseImage: string | undefined;
116+
117+
/**
118+
* <p>A unique ID. If not specified, the Amazon Web Services CLI and Amazon Web Services SDKs, such as the SDK for Python
119+
* (Boto3), add a unique value to the call.</p>
120+
*/
121+
ClientToken?: string;
122+
123+
/**
124+
* <p>The <code>ImageName</code> of the <code>Image</code> to create a version of.</p>
125+
*/
126+
ImageName: string | undefined;
127+
}
128+
129+
export namespace CreateImageVersionRequest {
130+
/**
131+
* @internal
132+
*/
133+
export const filterSensitiveLog = (obj: CreateImageVersionRequest): any => ({
134+
...obj,
135+
});
136+
}
137+
107138
export interface CreateImageVersionResponse {
108139
/**
109140
* <p>The Amazon Resource Name (ARN) of the image version.</p>
@@ -11330,12 +11361,3 @@ export namespace LabelingJobOutput {
1133011361
...obj,
1133111362
});
1133211363
}
11333-
11334-
export enum LabelingJobStatus {
11335-
COMPLETED = "Completed",
11336-
FAILED = "Failed",
11337-
INITIALIZING = "Initializing",
11338-
IN_PROGRESS = "InProgress",
11339-
STOPPED = "Stopped",
11340-
STOPPING = "Stopping",
11341-
}

clients/client-sagemaker/src/models/models_2.ts

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ import {
8989
LabelingJobInputConfig,
9090
LabelingJobOutput,
9191
LabelingJobOutputConfig,
92-
LabelingJobStatus,
9392
LabelingJobStoppingConditions,
9493
MemberDefinition,
9594
ModelArtifacts,
@@ -138,6 +137,15 @@ import {
138137
TrialComponentStatus,
139138
} from "./models_1";
140139

140+
export enum LabelingJobStatus {
141+
COMPLETED = "Completed",
142+
FAILED = "Failed",
143+
INITIALIZING = "Initializing",
144+
IN_PROGRESS = "InProgress",
145+
STOPPED = "Stopped",
146+
STOPPING = "Stopping",
147+
}
148+
141149
export interface DescribeLabelingJobResponse {
142150
/**
143151
* <p>The processing status of the labeling job. </p>
@@ -10916,25 +10924,3 @@ export namespace ListTagsInput {
1091610924
...obj,
1091710925
});
1091810926
}
10919-
10920-
export interface ListTagsOutput {
10921-
/**
10922-
* <p>An array of <code>Tag</code> objects, each with a tag key and a value.</p>
10923-
*/
10924-
Tags?: Tag[];
10925-
10926-
/**
10927-
* <p> If response is truncated, SageMaker includes a token in the response. You can use this
10928-
* token in your subsequent request to fetch next set of tokens. </p>
10929-
*/
10930-
NextToken?: string;
10931-
}
10932-
10933-
export namespace ListTagsOutput {
10934-
/**
10935-
* @internal
10936-
*/
10937-
export const filterSensitiveLog = (obj: ListTagsOutput): any => ({
10938-
...obj,
10939-
});
10940-
}

clients/client-sagemaker/src/models/models_3.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,28 @@ import {
102102
Workteam,
103103
} from "./models_2";
104104

105+
export interface ListTagsOutput {
106+
/**
107+
* <p>An array of <code>Tag</code> objects, each with a tag key and a value.</p>
108+
*/
109+
Tags?: Tag[];
110+
111+
/**
112+
* <p> If response is truncated, SageMaker includes a token in the response. You can use this
113+
* token in your subsequent request to fetch next set of tokens. </p>
114+
*/
115+
NextToken?: string;
116+
}
117+
118+
export namespace ListTagsOutput {
119+
/**
120+
* @internal
121+
*/
122+
export const filterSensitiveLog = (obj: ListTagsOutput): any => ({
123+
...obj,
124+
});
125+
}
126+
105127
export interface ListTrainingJobsRequest {
106128
/**
107129
* <p>If the result of the previous <code>ListTrainingJobs</code> request was truncated,

clients/client-sagemaker/src/protocols/Aws_json1_1.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,6 @@ import {
769769
CreateHyperParameterTuningJobResponse,
770770
CreateImageRequest,
771771
CreateImageResponse,
772-
CreateImageVersionRequest,
773772
CustomImage,
774773
DataCaptureConfig,
775774
DataCatalogConfig,
@@ -877,6 +876,7 @@ import {
877876
VpcConfig,
878877
} from "../models/models_0";
879878
import {
879+
CreateImageVersionRequest,
880880
CreateImageVersionResponse,
881881
CreateInferenceRecommendationsJobRequest,
882882
CreateInferenceRecommendationsJobResponse,
@@ -1341,7 +1341,6 @@ import {
13411341
ListSubscribedWorkteamsRequest,
13421342
ListSubscribedWorkteamsResponse,
13431343
ListTagsInput,
1344-
ListTagsOutput,
13451344
MetricData,
13461345
ModelMetadataFilter,
13471346
ModelMetadataSearchExpression,
@@ -1389,6 +1388,7 @@ import {
13891388
Workteam,
13901389
} from "../models/models_2";
13911390
import {
1391+
ListTagsOutput,
13921392
ListTrainingJobsForHyperParameterTuningJobRequest,
13931393
ListTrainingJobsForHyperParameterTuningJobResponse,
13941394
ListTrainingJobsRequest,
@@ -22365,7 +22365,14 @@ const serializeAws_json1_1RetryStrategy = (input: RetryStrategy, context: __Serd
2236522365
};
2236622366

2236722367
const serializeAws_json1_1RSessionAppSettings = (input: RSessionAppSettings, context: __SerdeContext): any => {
22368-
return {};
22368+
return {
22369+
...(input.CustomImages !== undefined &&
22370+
input.CustomImages !== null && { CustomImages: serializeAws_json1_1CustomImages(input.CustomImages, context) }),
22371+
...(input.DefaultResourceSpec !== undefined &&
22372+
input.DefaultResourceSpec !== null && {
22373+
DefaultResourceSpec: serializeAws_json1_1ResourceSpec(input.DefaultResourceSpec, context),
22374+
}),
22375+
};
2236922376
};
2237022377

2237122378
const serializeAws_json1_1RStudioServerProAppSettings = (
@@ -30445,6 +30452,7 @@ const deserializeAws_json1_1MetricDatum = (output: any, context: __SerdeContext)
3044530452
return {
3044630453
MetricName: __expectString(output.MetricName),
3044730454
Set: __expectString(output.Set),
30455+
StandardMetricName: __expectString(output.StandardMetricName),
3044830456
Value: __limitedParseFloat32(output.Value),
3044930457
} as any;
3045030458
};
@@ -33070,7 +33078,16 @@ const deserializeAws_json1_1RetryStrategy = (output: any, context: __SerdeContex
3307033078
};
3307133079

3307233080
const deserializeAws_json1_1RSessionAppSettings = (output: any, context: __SerdeContext): RSessionAppSettings => {
33073-
return {} as any;
33081+
return {
33082+
CustomImages:
33083+
output.CustomImages !== undefined && output.CustomImages !== null
33084+
? deserializeAws_json1_1CustomImages(output.CustomImages, context)
33085+
: undefined,
33086+
DefaultResourceSpec:
33087+
output.DefaultResourceSpec !== undefined && output.DefaultResourceSpec !== null
33088+
? deserializeAws_json1_1ResourceSpec(output.DefaultResourceSpec, context)
33089+
: undefined,
33090+
} as any;
3307433091
};
3307533092

3307633093
const deserializeAws_json1_1RStudioServerProAppSettings = (

0 commit comments

Comments
 (0)