Skip to content

Commit e3b98d4

Browse files
author
awstools
committed
feat(client-sagemaker): This release adds HyperParameterTuningJob type in Search API.
1 parent 51c2422 commit e3b98d4

File tree

6 files changed

+382
-99
lines changed

6 files changed

+382
-99
lines changed

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

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

15-
import { ListNotebookInstancesInput, ListNotebookInstancesInputFilterSensitiveLog } from "../models/models_2";
16-
import { ListNotebookInstancesOutput, ListNotebookInstancesOutputFilterSensitiveLog } from "../models/models_3";
15+
import {
16+
ListNotebookInstancesInput,
17+
ListNotebookInstancesInputFilterSensitiveLog,
18+
ListNotebookInstancesOutput,
19+
ListNotebookInstancesOutputFilterSensitiveLog,
20+
} from "../models/models_3";
1721
import {
1822
deserializeAws_json1_1ListNotebookInstancesCommand,
1923
serializeAws_json1_1ListNotebookInstancesCommand,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,9 +1249,9 @@ export interface StoppingCondition {
12491249
* <code>MaxRuntimeInSeconds</code> specifies the maximum time for all of the attempts
12501250
* in total, not each individual attempt. The default value is 1 day. The maximum value is
12511251
* 28 days.</p>
1252-
* <p>The maximum time that a <code>TrainingJob</code> can run in total, including any time spent
1253-
* publishing metrics or archiving and uploading models after it has been stopped, is 30
1254-
* days.</p>
1252+
* <p>The maximum time that a <code>TrainingJob</code> can run in total, including any time
1253+
* spent publishing metrics or archiving and uploading models after it has been stopped, is
1254+
* 30 days.</p>
12551255
*/
12561256
MaxRuntimeInSeconds?: number;
12571257

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

Lines changed: 116 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -5374,6 +5374,7 @@ export enum ResourceType {
53745374
EXPERIMENT_TRIAL_COMPONENT = "ExperimentTrialComponent",
53755375
FEATURE_GROUP = "FeatureGroup",
53765376
FEATURE_METADATA = "FeatureMetadata",
5377+
HYPER_PARAMETER_TUNING_JOB = "HyperParameterTuningJob",
53775378
MODEL_PACKAGE = "ModelPackage",
53785379
MODEL_PACKAGE_GROUP = "ModelPackageGroup",
53795380
PIPELINE = "Pipeline",
@@ -5474,6 +5475,112 @@ export interface HumanTaskUiSummary {
54745475
CreationTime: Date | undefined;
54755476
}
54765477

5478+
/**
5479+
* <p>An entity having characteristics over which a user can search for a hyperparameter
5480+
* tuning job.</p>
5481+
*/
5482+
export interface HyperParameterTuningJobSearchEntity {
5483+
/**
5484+
* <p>The name of a hyperparameter tuning job.</p>
5485+
*/
5486+
HyperParameterTuningJobName?: string;
5487+
5488+
/**
5489+
* <p>The Amazon Resource Name (ARN) of a hyperparameter tuning job.</p>
5490+
*/
5491+
HyperParameterTuningJobArn?: string;
5492+
5493+
/**
5494+
* <p>Configures a hyperparameter tuning job.</p>
5495+
*/
5496+
HyperParameterTuningJobConfig?: HyperParameterTuningJobConfig;
5497+
5498+
/**
5499+
* <p>Defines
5500+
* the training jobs launched by a hyperparameter tuning job.</p>
5501+
*/
5502+
TrainingJobDefinition?: HyperParameterTrainingJobDefinition;
5503+
5504+
/**
5505+
* <p>The job definitions included in a hyperparameter tuning job.</p>
5506+
*/
5507+
TrainingJobDefinitions?: HyperParameterTrainingJobDefinition[];
5508+
5509+
/**
5510+
* <p>The status of a hyperparameter tuning job.</p>
5511+
*/
5512+
HyperParameterTuningJobStatus?: HyperParameterTuningJobStatus | string;
5513+
5514+
/**
5515+
* <p>The time that a hyperparameter tuning job was created.</p>
5516+
*/
5517+
CreationTime?: Date;
5518+
5519+
/**
5520+
* <p>The time that a hyperparameter tuning job ended.</p>
5521+
*/
5522+
HyperParameterTuningEndTime?: Date;
5523+
5524+
/**
5525+
* <p>The time that a hyperparameter tuning job was last modified.</p>
5526+
*/
5527+
LastModifiedTime?: Date;
5528+
5529+
/**
5530+
* <p>The numbers of training jobs launched by a hyperparameter tuning job, categorized by
5531+
* status.</p>
5532+
*/
5533+
TrainingJobStatusCounters?: TrainingJobStatusCounters;
5534+
5535+
/**
5536+
* <p>Specifies the number of training jobs that this hyperparameter tuning job launched,
5537+
* categorized by the status of their objective metric. The objective metric status shows
5538+
* whether the
5539+
* final
5540+
* objective metric for the training job has been evaluated by the
5541+
* tuning job and used in the hyperparameter tuning process.</p>
5542+
*/
5543+
ObjectiveStatusCounters?: ObjectiveStatusCounters;
5544+
5545+
/**
5546+
* <p>The container for the summary information about a training job.</p>
5547+
*/
5548+
BestTrainingJob?: HyperParameterTrainingJobSummary;
5549+
5550+
/**
5551+
* <p>The container for the summary information about a training job.</p>
5552+
*/
5553+
OverallBestTrainingJob?: HyperParameterTrainingJobSummary;
5554+
5555+
/**
5556+
* <p>Specifies the configuration for a hyperparameter tuning job that uses one or more
5557+
* previous hyperparameter tuning jobs as a starting point. The results of previous tuning
5558+
* jobs are used to inform which combinations of hyperparameters to search over in the new
5559+
* tuning job.</p>
5560+
* <p>All training jobs launched by the new hyperparameter tuning job are evaluated by using
5561+
* the objective metric, and the training job that performs the best is compared to the
5562+
* best training jobs from the parent tuning jobs. From these, the training job that
5563+
* performs the best as measured by the objective metric is returned as the overall best
5564+
* training job.</p>
5565+
* <note>
5566+
* <p>All training jobs launched by parent hyperparameter tuning jobs and the new
5567+
* hyperparameter tuning jobs count against the limit of training jobs for the tuning
5568+
* job.</p>
5569+
* </note>
5570+
*/
5571+
WarmStartConfig?: HyperParameterTuningJobWarmStartConfig;
5572+
5573+
/**
5574+
* <p>The error that was created when a hyperparameter tuning job failed.</p>
5575+
*/
5576+
FailureReason?: string;
5577+
5578+
/**
5579+
* <p>The tags associated with a hyperparameter tuning job. For more information see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>
5580+
*/
5581+
Tags?: Tag[];
5582+
}
5583+
54775584
export enum HyperParameterTuningJobSortByOptions {
54785585
CreationTime = "CreationTime",
54795586
Name = "Name",
@@ -8731,91 +8838,6 @@ export enum NotebookInstanceSortOrder {
87318838
DESCENDING = "Descending",
87328839
}
87338840

8734-
export interface ListNotebookInstancesInput {
8735-
/**
8736-
* <p> If the previous call to the <code>ListNotebookInstances</code> is truncated, the
8737-
* response includes a <code>NextToken</code>. You can use this token in your subsequent
8738-
* <code>ListNotebookInstances</code> request to fetch the next set of notebook
8739-
* instances. </p>
8740-
* <note>
8741-
* <p>You might specify a filter or a sort order in your request. When response is
8742-
* truncated, you must use the same values for the filer and sort order in the next
8743-
* request. </p>
8744-
* </note>
8745-
*/
8746-
NextToken?: string;
8747-
8748-
/**
8749-
* <p>The maximum number of notebook instances to return.</p>
8750-
*/
8751-
MaxResults?: number;
8752-
8753-
/**
8754-
* <p>The field to sort results by. The default is <code>Name</code>.</p>
8755-
*/
8756-
SortBy?: NotebookInstanceSortKey | string;
8757-
8758-
/**
8759-
* <p>The sort order for results. </p>
8760-
*/
8761-
SortOrder?: NotebookInstanceSortOrder | string;
8762-
8763-
/**
8764-
* <p>A string in the notebook instances' name. This filter returns only notebook
8765-
* instances whose name contains the specified string.</p>
8766-
*/
8767-
NameContains?: string;
8768-
8769-
/**
8770-
* <p>A filter that returns only notebook instances that were created before the
8771-
* specified time (timestamp). </p>
8772-
*/
8773-
CreationTimeBefore?: Date;
8774-
8775-
/**
8776-
* <p>A filter that returns only notebook instances that were created after the specified
8777-
* time (timestamp).</p>
8778-
*/
8779-
CreationTimeAfter?: Date;
8780-
8781-
/**
8782-
* <p>A filter that returns only notebook instances that were modified before the
8783-
* specified time (timestamp).</p>
8784-
*/
8785-
LastModifiedTimeBefore?: Date;
8786-
8787-
/**
8788-
* <p>A filter that returns only notebook instances that were modified after the
8789-
* specified time (timestamp).</p>
8790-
*/
8791-
LastModifiedTimeAfter?: Date;
8792-
8793-
/**
8794-
* <p>A filter that returns only notebook instances with the specified status.</p>
8795-
*/
8796-
StatusEquals?: NotebookInstanceStatus | string;
8797-
8798-
/**
8799-
* <p>A string in the name of a notebook instances lifecycle configuration associated with
8800-
* this notebook instance. This filter returns only notebook instances associated with a
8801-
* lifecycle configuration with a name that contains the specified string.</p>
8802-
*/
8803-
NotebookInstanceLifecycleConfigNameContains?: string;
8804-
8805-
/**
8806-
* <p>A string in the name or URL of a Git repository associated with this notebook
8807-
* instance. This filter returns only notebook instances associated with a git repository
8808-
* with a name that contains the specified string.</p>
8809-
*/
8810-
DefaultCodeRepositoryContains?: string;
8811-
8812-
/**
8813-
* <p>A filter that returns only notebook instances with associated with the specified git
8814-
* repository.</p>
8815-
*/
8816-
AdditionalCodeRepositoryEquals?: string;
8817-
}
8818-
88198841
/**
88208842
* @internal
88218843
*/
@@ -9834,6 +9856,15 @@ export const HumanTaskUiSummaryFilterSensitiveLog = (obj: HumanTaskUiSummary): a
98349856
...obj,
98359857
});
98369858

9859+
/**
9860+
* @internal
9861+
*/
9862+
export const HyperParameterTuningJobSearchEntityFilterSensitiveLog = (
9863+
obj: HyperParameterTuningJobSearchEntity
9864+
): any => ({
9865+
...obj,
9866+
});
9867+
98379868
/**
98389869
* @internal
98399870
*/
@@ -10549,10 +10580,3 @@ export const ListNotebookInstanceLifecycleConfigsOutputFilterSensitiveLog = (
1054910580
): any => ({
1055010581
...obj,
1055110582
});
10552-
10553-
/**
10554-
* @internal
10555-
*/
10556-
export const ListNotebookInstancesInputFilterSensitiveLog = (obj: ListNotebookInstancesInput): any => ({
10557-
...obj,
10558-
});

0 commit comments

Comments
 (0)