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 algorithm to use for the training
jobs that the tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
algorithmSpecification(HyperParameterAlgorithmSpecification algorithmSpecification)
The HyperParameterAlgorithmSpecification object that specifies the algorithm to use for the training
jobs that the tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
enableNetworkIsolation(Boolean enableNetworkIsolation)
Isolates the training container.
|
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)
Sets a maximum duration for the training jobs that the tuning job launches.
|
HyperParameterTrainingJobDefinition.Builder |
stoppingCondition(StoppingCondition stoppingCondition)
Sets a maximum duration for the training jobs that the tuning job launches.
|
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.
|
copy
applyMutation, build
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 algorithm to use for the training jobs that the tuning job launches.
algorithmSpecification
- The HyperParameterAlgorithmSpecification object that specifies the 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 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)
Sets a maximum duration for the training jobs that the tuning job launches. Use this parameter to limit model training costs.
To stop a job, Amazon SageMaker sends the algorithm the SIGTERM
signal. This delays job
termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts.
When Amazon SageMaker terminates a job because the stopping condition has been met, training algorithms provided by Amazon SageMaker save the intermediate results of the job.
stoppingCondition
- Sets a maximum duration for the training jobs that the tuning job launches. Use this parameter to
limit model training costs.
To stop a job, Amazon SageMaker sends the algorithm the SIGTERM
signal. This delays job
termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts.
When Amazon SageMaker terminates a job because the stopping condition has been met, training algorithms provided by Amazon SageMaker save the intermediate results of the job.
default HyperParameterTrainingJobDefinition.Builder stoppingCondition(Consumer<StoppingCondition.Builder> stoppingCondition)
Sets a maximum duration for the training jobs that the tuning job launches. Use this parameter to limit model training costs.
To stop a job, Amazon SageMaker sends the algorithm the SIGTERM
signal. This delays job
termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts.
When Amazon SageMaker terminates a job because the stopping condition has been met, training algorithms provided by Amazon SageMaker save the intermediate results of the job.
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 specifed VPC, but the training container does not have network access.
The Semantic Segmentation built-in algorithm does not support network isolation.
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 specifed VPC, but the training container does not have network
access. The Semantic Segmentation built-in algorithm does not support network isolation.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.