Skip to content

Commit 6d04ea9

Browse files
author
awstools
committed
feat(client-sagemaker): Amazon SageMaker Automatic Model Tuning now supports more completion criteria for Hyperparameter Optimization.
1 parent 51a6cc8 commit 6d04ea9

File tree

13 files changed

+975
-631
lines changed

13 files changed

+975
-631
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
CreateExperimentRequestFilterSensitiveLog,
1919
CreateExperimentResponse,
2020
CreateExperimentResponseFilterSensitiveLog,
21-
} from "../models/models_0";
21+
} from "../models/models_1";
2222
import {
2323
deserializeAws_json1_1CreateExperimentCommand,
2424
serializeAws_json1_1CreateExperimentCommand,

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ import {
1313
SerdeContext as __SerdeContext,
1414
} from "@aws-sdk/types";
1515

16-
import {
17-
ListAppImageConfigsRequest,
18-
ListAppImageConfigsRequestFilterSensitiveLog,
19-
ListAppImageConfigsResponse,
20-
ListAppImageConfigsResponseFilterSensitiveLog,
21-
} from "../models/models_2";
16+
import { ListAppImageConfigsRequest, ListAppImageConfigsRequestFilterSensitiveLog } from "../models/models_2";
17+
import { ListAppImageConfigsResponse, ListAppImageConfigsResponseFilterSensitiveLog } from "../models/models_3";
2218
import {
2319
deserializeAws_json1_1ListAppImageConfigsCommand,
2420
serializeAws_json1_1ListAppImageConfigsCommand,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
ListAppsRequestFilterSensitiveLog,
1919
ListAppsResponse,
2020
ListAppsResponseFilterSensitiveLog,
21-
} from "../models/models_2";
21+
} from "../models/models_3";
2222
import { deserializeAws_json1_1ListAppsCommand, serializeAws_json1_1ListAppsCommand } from "../protocols/Aws_json1_1";
2323
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient";
2424

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ import {
1313
SerdeContext as __SerdeContext,
1414
} from "@aws-sdk/types";
1515

16-
import { ListArtifactsRequest, ListArtifactsRequestFilterSensitiveLog } from "../models/models_2";
17-
import { ListArtifactsResponse, ListArtifactsResponseFilterSensitiveLog } from "../models/models_3";
16+
import {
17+
ListArtifactsRequest,
18+
ListArtifactsRequestFilterSensitiveLog,
19+
ListArtifactsResponse,
20+
ListArtifactsResponseFilterSensitiveLog,
21+
} from "../models/models_3";
1822
import {
1923
deserializeAws_json1_1ListArtifactsCommand,
2024
serializeAws_json1_1ListArtifactsCommand,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
UpdateEndpointInputFilterSensitiveLog,
1919
UpdateEndpointOutput,
2020
UpdateEndpointOutputFilterSensitiveLog,
21-
} from "../models/models_3";
21+
} from "../models/models_4";
2222
import {
2323
deserializeAws_json1_1UpdateEndpointCommand,
2424
serializeAws_json1_1UpdateEndpointCommand,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
UpdateEndpointWeightsAndCapacitiesInputFilterSensitiveLog,
1919
UpdateEndpointWeightsAndCapacitiesOutput,
2020
UpdateEndpointWeightsAndCapacitiesOutputFilterSensitiveLog,
21-
} from "../models/models_3";
21+
} from "../models/models_4";
2222
import {
2323
deserializeAws_json1_1UpdateEndpointWeightsAndCapacitiesCommand,
2424
serializeAws_json1_1UpdateEndpointWeightsAndCapacitiesCommand,

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

Lines changed: 39 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5043,6 +5043,16 @@ export interface BatchTransformInput {
50435043
EndTimeOffset?: string;
50445044
}
50455045

5046+
/**
5047+
* <p>A structure that keeps track of which training jobs launched by your hyperparameter tuning job are not improving model performance as evaluated against an objective function.</p>
5048+
*/
5049+
export interface BestObjectiveNotImproving {
5050+
/**
5051+
* <p>The number of training jobs that have failed to improve model performance by 1% or greater over prior training jobs as evaluated against an objective function.</p>
5052+
*/
5053+
MaxNumberOfTrainingJobsNotImproving?: number;
5054+
}
5055+
50465056
/**
50475057
* <p>Details about the metrics source.</p>
50485058
*/
@@ -6089,6 +6099,11 @@ export interface CompilationJobSummary {
60896099
CompilationJobStatus: CompilationJobStatus | string | undefined;
60906100
}
60916101

6102+
export enum CompleteOnConvergence {
6103+
DISABLED = "Disabled",
6104+
ENABLED = "Enabled",
6105+
}
6106+
60926107
export enum ConditionOutcome {
60936108
FALSE = "False",
60946109
TRUE = "True",
@@ -6442,6 +6457,16 @@ export interface ContinuousParameterRangeSpecification {
64426457
MaxValue: string | undefined;
64436458
}
64446459

6460+
/**
6461+
* <p>A flag to indicating that automatic model tuning (AMT) has detected model convergence, defined as a lack of significant improvement (1% or less) against an objective metric.</p>
6462+
*/
6463+
export interface ConvergenceDetected {
6464+
/**
6465+
* <p>A flag to stop a tuning job once AMT has detected that the job has converged.</p>
6466+
*/
6467+
CompleteOnConvergence?: CompleteOnConvergence | string;
6468+
}
6469+
64456470
/**
64466471
* <p>Metadata properties of the tracking entity, trial, or trial component.</p>
64476472
*/
@@ -9422,45 +9447,6 @@ export interface CreateEndpointConfigOutput {
94229447
EndpointConfigArn: string | undefined;
94239448
}
94249449

9425-
export interface CreateExperimentRequest {
9426-
/**
9427-
* <p>The name of the experiment. The name must be unique in your Amazon Web Services account and is not
9428-
* case-sensitive.</p>
9429-
*/
9430-
ExperimentName: string | undefined;
9431-
9432-
/**
9433-
* <p>The name of the experiment as displayed. The name doesn't need to be unique. If you don't
9434-
* specify <code>DisplayName</code>, the value in <code>ExperimentName</code> is
9435-
* displayed.</p>
9436-
*/
9437-
DisplayName?: string;
9438-
9439-
/**
9440-
* <p>The description of the experiment.</p>
9441-
*/
9442-
Description?: string;
9443-
9444-
/**
9445-
* <p>A list of tags to associate with the experiment. You can use <a>Search</a> API
9446-
* to search on the tags.</p>
9447-
*/
9448-
Tags?: Tag[];
9449-
}
9450-
9451-
export interface CreateExperimentResponse {
9452-
/**
9453-
* <p>The Amazon Resource Name (ARN) of the experiment.</p>
9454-
*/
9455-
ExperimentArn?: string;
9456-
}
9457-
9458-
export enum FeatureType {
9459-
FRACTIONAL = "Fractional",
9460-
INTEGRAL = "Integral",
9461-
STRING = "String",
9462-
}
9463-
94649450
/**
94659451
* @internal
94669452
*/
@@ -10093,6 +10079,13 @@ export const BatchTransformInputFilterSensitiveLog = (obj: BatchTransformInput):
1009310079
...obj,
1009410080
});
1009510081

10082+
/**
10083+
* @internal
10084+
*/
10085+
export const BestObjectiveNotImprovingFilterSensitiveLog = (obj: BestObjectiveNotImproving): any => ({
10086+
...obj,
10087+
});
10088+
1009610089
/**
1009710090
* @internal
1009810091
*/
@@ -10370,6 +10363,13 @@ export const ContinuousParameterRangeSpecificationFilterSensitiveLog = (
1037010363
...obj,
1037110364
});
1037210365

10366+
/**
10367+
* @internal
10368+
*/
10369+
export const ConvergenceDetectedFilterSensitiveLog = (obj: ConvergenceDetected): any => ({
10370+
...obj,
10371+
});
10372+
1037310373
/**
1037410374
* @internal
1037510375
*/
@@ -10919,17 +10919,3 @@ export const CreateEndpointConfigInputFilterSensitiveLog = (obj: CreateEndpointC
1091910919
export const CreateEndpointConfigOutputFilterSensitiveLog = (obj: CreateEndpointConfigOutput): any => ({
1092010920
...obj,
1092110921
});
10922-
10923-
/**
10924-
* @internal
10925-
*/
10926-
export const CreateExperimentRequestFilterSensitiveLog = (obj: CreateExperimentRequest): any => ({
10927-
...obj,
10928-
});
10929-
10930-
/**
10931-
* @internal
10932-
*/
10933-
export const CreateExperimentResponseFilterSensitiveLog = (obj: CreateExperimentResponse): any => ({
10934-
...obj,
10935-
});

0 commit comments

Comments
 (0)