public static interface HyperParameterTrainingJobDefinition.Builder extends SdkPojo, CopyableBuilder<HyperParameterTrainingJobDefinition.Builder,HyperParameterTrainingJobDefinition>
Modifier and Type | Method and Description |
---|---|
default HyperParameterTrainingJobDefinition.Builder |
algorithmSpecification(Consumer<HyperParameterAlgorithmSpecification.Builder> algorithmSpecification)
The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the
training jobs that the tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
algorithmSpecification(HyperParameterAlgorithmSpecification algorithmSpecification)
The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the
training jobs that the tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
checkpointConfig(CheckpointConfig checkpointConfig)
Sets the value of the CheckpointConfig property for this object.
|
default HyperParameterTrainingJobDefinition.Builder |
checkpointConfig(Consumer<CheckpointConfig.Builder> checkpointConfig)
Sets the value of the CheckpointConfig property for this object.
|
HyperParameterTrainingJobDefinition.Builder |
definitionName(String definitionName)
The job definition name.
|
HyperParameterTrainingJobDefinition.Builder |
enableInterContainerTrafficEncryption(Boolean enableInterContainerTrafficEncryption)
To encrypt all communications between ML compute instances in distributed training, choose
True . |
HyperParameterTrainingJobDefinition.Builder |
enableManagedSpotTraining(Boolean enableManagedSpotTraining)
A Boolean indicating whether managed spot training is enabled (
True ) or not (False
). |
HyperParameterTrainingJobDefinition.Builder |
enableNetworkIsolation(Boolean enableNetworkIsolation)
Isolates the training container.
|
default HyperParameterTrainingJobDefinition.Builder |
hyperParameterRanges(Consumer<ParameterRanges.Builder> hyperParameterRanges)
Sets the value of the HyperParameterRanges property for this object.
|
HyperParameterTrainingJobDefinition.Builder |
hyperParameterRanges(ParameterRanges hyperParameterRanges)
Sets the value of the HyperParameterRanges property for this object.
|
HyperParameterTrainingJobDefinition.Builder |
inputDataConfig(Channel... inputDataConfig)
An array of Channel objects that specify the input for the training jobs that the tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
inputDataConfig(Collection<Channel> inputDataConfig)
An array of Channel objects that specify the input for the training jobs that the tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
inputDataConfig(Consumer<Channel.Builder>... inputDataConfig)
An array of Channel objects that specify the input for the training jobs that the tuning job launches.
|
default HyperParameterTrainingJobDefinition.Builder |
outputDataConfig(Consumer<OutputDataConfig.Builder> outputDataConfig)
Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the
tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
outputDataConfig(OutputDataConfig outputDataConfig)
Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the
tuning job launches.
|
default HyperParameterTrainingJobDefinition.Builder |
resourceConfig(Consumer<ResourceConfig.Builder> resourceConfig)
The resources, including the compute instances and storage volumes, to use for the training jobs that the
tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
resourceConfig(ResourceConfig resourceConfig)
The resources, including the compute instances and storage volumes, to use for the training jobs that the
tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
roleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job
launches.
|
HyperParameterTrainingJobDefinition.Builder |
staticHyperParameters(Map<String,String> staticHyperParameters)
Specifies the values of hyperparameters that do not change for the tuning job.
|
default HyperParameterTrainingJobDefinition.Builder |
stoppingCondition(Consumer<StoppingCondition.Builder> stoppingCondition)
Specifies a limit to how long a model hyperparameter training job can run.
|
HyperParameterTrainingJobDefinition.Builder |
stoppingCondition(StoppingCondition stoppingCondition)
Specifies a limit to how long a model hyperparameter training job can run.
|
default HyperParameterTrainingJobDefinition.Builder |
tuningObjective(Consumer<HyperParameterTuningJobObjective.Builder> tuningObjective)
Sets the value of the TuningObjective property for this object.
|
HyperParameterTrainingJobDefinition.Builder |
tuningObjective(HyperParameterTuningJobObjective tuningObjective)
Sets the value of the TuningObjective property for this object.
|
default HyperParameterTrainingJobDefinition.Builder |
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter
tuning job launches to connect to.
|
HyperParameterTrainingJobDefinition.Builder |
vpcConfig(VpcConfig vpcConfig)
The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter
tuning job launches to connect to.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
HyperParameterTrainingJobDefinition.Builder definitionName(String definitionName)
The job definition name.
definitionName
- The job definition name.HyperParameterTrainingJobDefinition.Builder tuningObjective(HyperParameterTuningJobObjective tuningObjective)
tuningObjective
- The new value for the TuningObjective property for this object.default HyperParameterTrainingJobDefinition.Builder tuningObjective(Consumer<HyperParameterTuningJobObjective.Builder> tuningObjective)
HyperParameterTuningJobObjective.Builder
avoiding the need to create one manually via HyperParameterTuningJobObjective.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to tuningObjective(HyperParameterTuningJobObjective)
.tuningObjective
- a consumer that will call methods on HyperParameterTuningJobObjective.Builder
tuningObjective(HyperParameterTuningJobObjective)
HyperParameterTrainingJobDefinition.Builder hyperParameterRanges(ParameterRanges hyperParameterRanges)
hyperParameterRanges
- The new value for the HyperParameterRanges property for this object.default HyperParameterTrainingJobDefinition.Builder hyperParameterRanges(Consumer<ParameterRanges.Builder> hyperParameterRanges)
ParameterRanges.Builder
avoiding the need to
create one manually via ParameterRanges.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to hyperParameterRanges(ParameterRanges)
.hyperParameterRanges
- a consumer that will call methods on ParameterRanges.Builder
hyperParameterRanges(ParameterRanges)
HyperParameterTrainingJobDefinition.Builder staticHyperParameters(Map<String,String> staticHyperParameters)
Specifies the values of hyperparameters that do not change for the tuning job.
staticHyperParameters
- Specifies the values of hyperparameters that do not change for the tuning job.HyperParameterTrainingJobDefinition.Builder algorithmSpecification(HyperParameterAlgorithmSpecification algorithmSpecification)
The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.
algorithmSpecification
- The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use
for the training jobs that the tuning job launches.default HyperParameterTrainingJobDefinition.Builder algorithmSpecification(Consumer<HyperParameterAlgorithmSpecification.Builder> algorithmSpecification)
The HyperParameterAlgorithmSpecification object that specifies the resource algorithm to use for the training jobs that the tuning job launches.
This is a convenience that creates an instance of theHyperParameterAlgorithmSpecification.Builder
avoiding the need to create one manually via HyperParameterAlgorithmSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to algorithmSpecification(HyperParameterAlgorithmSpecification)
.algorithmSpecification
- a consumer that will call methods on HyperParameterAlgorithmSpecification.Builder
algorithmSpecification(HyperParameterAlgorithmSpecification)
HyperParameterTrainingJobDefinition.Builder roleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job
launches.HyperParameterTrainingJobDefinition.Builder inputDataConfig(Collection<Channel> inputDataConfig)
An array of Channel objects that specify the input for the training jobs that the tuning job launches.
inputDataConfig
- An array of Channel objects that specify the input for the training jobs that the tuning job
launches.HyperParameterTrainingJobDefinition.Builder inputDataConfig(Channel... inputDataConfig)
An array of Channel objects that specify the input for the training jobs that the tuning job launches.
inputDataConfig
- An array of Channel objects that specify the input for the training jobs that the tuning job
launches.HyperParameterTrainingJobDefinition.Builder inputDataConfig(Consumer<Channel.Builder>... inputDataConfig)
An array of Channel objects that specify the input for the training jobs that the tuning job launches.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #inputDataConfig(List)
.inputDataConfig
- a consumer that will call methods on List.Builder
#inputDataConfig(List)
HyperParameterTrainingJobDefinition.Builder vpcConfig(VpcConfig 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.
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.default HyperParameterTrainingJobDefinition.Builder vpcConfig(Consumer<VpcConfig.Builder> 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.
This is a convenience that creates an instance of theVpcConfig.Builder
avoiding the need to create
one manually via VpcConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to vpcConfig(VpcConfig)
.vpcConfig
- a consumer that will call methods on VpcConfig.Builder
vpcConfig(VpcConfig)
HyperParameterTrainingJobDefinition.Builder outputDataConfig(OutputDataConfig outputDataConfig)
Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.
outputDataConfig
- Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that
the tuning job launches.default HyperParameterTrainingJobDefinition.Builder outputDataConfig(Consumer<OutputDataConfig.Builder> outputDataConfig)
Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.
This is a convenience that creates an instance of theOutputDataConfig.Builder
avoiding the need to
create one manually via OutputDataConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to outputDataConfig(OutputDataConfig)
.outputDataConfig
- a consumer that will call methods on OutputDataConfig.Builder
outputDataConfig(OutputDataConfig)
HyperParameterTrainingJobDefinition.Builder resourceConfig(ResourceConfig 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.
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.
default HyperParameterTrainingJobDefinition.Builder resourceConfig(Consumer<ResourceConfig.Builder> 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.
ResourceConfig.Builder
avoiding the need to
create one manually via ResourceConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to resourceConfig(ResourceConfig)
.resourceConfig
- a consumer that will call methods on ResourceConfig.Builder
resourceConfig(ResourceConfig)
HyperParameterTrainingJobDefinition.Builder stoppingCondition(StoppingCondition stoppingCondition)
Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long you are willing to wait for a managed spot training job to complete. When the job reaches the a limit, Amazon SageMaker ends the training job. Use this API to cap model training costs.
stoppingCondition
- Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long
you are willing to wait for a managed spot training job to complete. When the job reaches the a limit,
Amazon SageMaker ends the training job. Use this API to cap model training costs.default HyperParameterTrainingJobDefinition.Builder stoppingCondition(Consumer<StoppingCondition.Builder> stoppingCondition)
Specifies a limit to how long a model hyperparameter training job can run. It also specifies how long you are willing to wait for a managed spot training job to complete. When the job reaches the a limit, Amazon SageMaker ends the training job. Use this API to cap model training costs.
This is a convenience that creates an instance of theStoppingCondition.Builder
avoiding the need to
create one manually via StoppingCondition.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to stoppingCondition(StoppingCondition)
.stoppingCondition
- a consumer that will call methods on StoppingCondition.Builder
stoppingCondition(StoppingCondition)
HyperParameterTrainingJobDefinition.Builder enableNetworkIsolation(Boolean 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.
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.HyperParameterTrainingJobDefinition.Builder enableInterContainerTrafficEncryption(Boolean 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.
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.HyperParameterTrainingJobDefinition.Builder enableManagedSpotTraining(Boolean enableManagedSpotTraining)
A Boolean indicating whether managed spot training is enabled (True
) or not (False
).
enableManagedSpotTraining
- A Boolean indicating whether managed spot training is enabled (True
) or not (
False
).HyperParameterTrainingJobDefinition.Builder checkpointConfig(CheckpointConfig checkpointConfig)
checkpointConfig
- The new value for the CheckpointConfig property for this object.default HyperParameterTrainingJobDefinition.Builder checkpointConfig(Consumer<CheckpointConfig.Builder> checkpointConfig)
CheckpointConfig.Builder
avoiding the need to
create one manually via CheckpointConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to checkpointConfig(CheckpointConfig)
.checkpointConfig
- a consumer that will call methods on CheckpointConfig.Builder
checkpointConfig(CheckpointConfig)
Copyright © 2020. All rights reserved.