Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: CC-BY-SA-4.0

HyperParameterTrainingJobDefinition

Defines the training jobs launched by a hyperparameter tuning job.

AlgorithmSpecification The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.
Type: HyperParameterAlgorithmSpecification object
Required: Yes

EnableInterContainerTrafficEncryption To encrypt all communications between ML compute instances in distributed training, choose True. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.
Type: Boolean
Required: No

EnableNetworkIsolation Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, Amazon SageMaker downloads and uploads customer data and model artifacts through the specified VPC, but the training container does not have network access.
The Semantic Segmentation built-in algorithm does not support network isolation. Type: Boolean
Required: No

InputDataConfig An array of Channel objects that specify the input for the training jobs that the tuning job launches.
Type: Array of Channel objects
Array Members: Minimum number of 1 item. Maximum number of 20 items.
Required: No

OutputDataConfig Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.
Type: OutputDataConfig object
Required: Yes

ResourceConfig The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.
Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want Amazon SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.
Type: ResourceConfig object
Required: Yes

RoleArn The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Pattern: ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$
Required: Yes

StaticHyperParameters Specifies the values of hyperparameters that do not change for the tuning job.
Type: String to string map
Key Length Constraints: Maximum length of 256.
Key Pattern: .*
Value Length Constraints: Maximum length of 256.
Value Pattern: .*
Required: No

StoppingCondition Specifies a limit to how long a model hyperparameter training job can run. When the job reaches the time limit, Amazon SageMaker ends the training job. Use this API to cap model training costs.
Type: StoppingCondition object
Required: Yes

VpcConfig The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.
Type: VpcConfig object
Required: No

For more information about using this API in one of the language-specific AWS SDKs, see the following: + AWS SDK for C++ + AWS SDK for Go + AWS SDK for Go - Pilot + AWS SDK for Java + AWS SDK for Ruby V2