public static interface HyperParameterTuningResourceConfig.Builder extends SdkPojo, CopyableBuilder<HyperParameterTuningResourceConfig.Builder,HyperParameterTuningResourceConfig>
| Modifier and Type | Method and Description |
|---|---|
HyperParameterTuningResourceConfig.Builder |
allocationStrategy(HyperParameterTuningAllocationStrategy allocationStrategy)
The strategy that determines the order of preference for resources specified in
InstanceConfigs
used in hyperparameter optimization. |
HyperParameterTuningResourceConfig.Builder |
allocationStrategy(String allocationStrategy)
The strategy that determines the order of preference for resources specified in
InstanceConfigs
used in hyperparameter optimization. |
HyperParameterTuningResourceConfig.Builder |
instanceConfigs(Collection<HyperParameterTuningInstanceConfig> instanceConfigs)
A list containing the configuration(s) for one or more resources for processing hyperparameter jobs.
|
HyperParameterTuningResourceConfig.Builder |
instanceConfigs(Consumer<HyperParameterTuningInstanceConfig.Builder>... instanceConfigs)
A list containing the configuration(s) for one or more resources for processing hyperparameter jobs.
|
HyperParameterTuningResourceConfig.Builder |
instanceConfigs(HyperParameterTuningInstanceConfig... instanceConfigs)
A list containing the configuration(s) for one or more resources for processing hyperparameter jobs.
|
HyperParameterTuningResourceConfig.Builder |
instanceCount(Integer instanceCount)
The number of compute instances of type
InstanceType to use. |
HyperParameterTuningResourceConfig.Builder |
instanceType(String instanceType)
The instance type used to run hyperparameter optimization tuning jobs.
|
HyperParameterTuningResourceConfig.Builder |
instanceType(TrainingInstanceType instanceType)
The instance type used to run hyperparameter optimization tuning jobs.
|
HyperParameterTuningResourceConfig.Builder |
volumeKmsKeyId(String volumeKmsKeyId)
A key used by Amazon Web Services Key Management Service to encrypt data on the storage volume attached to
the compute instances used to run the training job.
|
HyperParameterTuningResourceConfig.Builder |
volumeSizeInGB(Integer volumeSizeInGB)
The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs
(optional).
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHyperParameterTuningResourceConfig.Builder instanceType(String instanceType)
The instance type used to run hyperparameter optimization tuning jobs. See descriptions of instance types for more information.
instanceType - The instance type used to run hyperparameter optimization tuning jobs. See descriptions of instance
types for more information.TrainingInstanceType,
TrainingInstanceTypeHyperParameterTuningResourceConfig.Builder instanceType(TrainingInstanceType instanceType)
The instance type used to run hyperparameter optimization tuning jobs. See descriptions of instance types for more information.
instanceType - The instance type used to run hyperparameter optimization tuning jobs. See descriptions of instance
types for more information.TrainingInstanceType,
TrainingInstanceTypeHyperParameterTuningResourceConfig.Builder instanceCount(Integer instanceCount)
The number of compute instances of type InstanceType to use. For distributed training,
select a value greater than 1.
instanceCount - The number of compute instances of type InstanceType to use. For distributed
training, select a value greater than 1.HyperParameterTuningResourceConfig.Builder volumeSizeInGB(Integer volumeSizeInGB)
The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs
(optional). These volumes store model artifacts, incremental states and optionally, scratch space for
training algorithms. Do not provide a value for this parameter if a value for InstanceConfigs is
also specified.
Some instance types have a fixed total local storage size. If you select one of these instances for training,
VolumeSizeInGB cannot be greater than this total size. For a list of instance types with local
instance storage and their sizes, see instance store volumes.
SageMaker supports only the General Purpose SSD (gp2) storage volume type.
volumeSizeInGB - The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs
(optional). These volumes store model artifacts, incremental states and optionally, scratch space for
training algorithms. Do not provide a value for this parameter if a value for
InstanceConfigs is also specified.
Some instance types have a fixed total local storage size. If you select one of these instances for
training, VolumeSizeInGB cannot be greater than this total size. For a list of instance
types with local instance storage and their sizes, see instance store
volumes.
SageMaker supports only the General Purpose SSD (gp2) storage volume type.
HyperParameterTuningResourceConfig.Builder volumeKmsKeyId(String volumeKmsKeyId)
A key used by Amazon Web Services Key Management Service to encrypt data on the storage volume attached to the compute instances used to run the training job. You can use either of the following formats to specify a key.
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
Amazon Resource Name (ARN) of a KMS key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
Some instances use local storage, which use a hardware module to
encrypt storage volumes. If you choose one of these instance types, you cannot request a
VolumeKmsKeyId. For a list of instance types that use local storage, see instance store volumes.
For more information about Amazon Web Services Key Management Service, see KMS encryption
for more information.
volumeKmsKeyId - A key used by Amazon Web Services Key Management Service to encrypt data on the storage volume
attached to the compute instances used to run the training job. You can use either of the following
formats to specify a key.
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
Amazon Resource Name (ARN) of a KMS key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
Some instances use local storage, which use a hardware module to
encrypt storage volumes. If you choose one of these instance types, you cannot request a
VolumeKmsKeyId. For a list of instance types that use local storage, see instance store
volumes. For more information about Amazon Web Services Key Management Service, see KMS
encryption for more information.
HyperParameterTuningResourceConfig.Builder allocationStrategy(String allocationStrategy)
The strategy that determines the order of preference for resources specified in InstanceConfigs
used in hyperparameter optimization.
allocationStrategy - The strategy that determines the order of preference for resources specified in
InstanceConfigs used in hyperparameter optimization.HyperParameterTuningAllocationStrategy,
HyperParameterTuningAllocationStrategyHyperParameterTuningResourceConfig.Builder allocationStrategy(HyperParameterTuningAllocationStrategy allocationStrategy)
The strategy that determines the order of preference for resources specified in InstanceConfigs
used in hyperparameter optimization.
allocationStrategy - The strategy that determines the order of preference for resources specified in
InstanceConfigs used in hyperparameter optimization.HyperParameterTuningAllocationStrategy,
HyperParameterTuningAllocationStrategyHyperParameterTuningResourceConfig.Builder instanceConfigs(Collection<HyperParameterTuningInstanceConfig> instanceConfigs)
A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These
resources include compute instances and storage volumes to use in model training jobs launched by
hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple
configurations provided in InstanceConfigs are used.
If you only want to use a single instance configuration inside the
HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs.
Instead, use InstanceType, VolumeSizeInGB and InstanceCount. If you
use InstanceConfigs, do not provide values for InstanceType,
VolumeSizeInGB or InstanceCount.
instanceConfigs - A list containing the configuration(s) for one or more resources for processing hyperparameter jobs.
These resources include compute instances and storage volumes to use in model training jobs launched
by hyperparameter tuning jobs. The AllocationStrategy controls the order in which
multiple configurations provided in InstanceConfigs are used.
If you only want to use a single instance configuration inside the
HyperParameterTuningResourceConfig API, do not provide a value for
InstanceConfigs. Instead, use InstanceType, VolumeSizeInGB and
InstanceCount. If you use InstanceConfigs, do not provide values for
InstanceType, VolumeSizeInGB or InstanceCount.
HyperParameterTuningResourceConfig.Builder instanceConfigs(HyperParameterTuningInstanceConfig... instanceConfigs)
A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These
resources include compute instances and storage volumes to use in model training jobs launched by
hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple
configurations provided in InstanceConfigs are used.
If you only want to use a single instance configuration inside the
HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs.
Instead, use InstanceType, VolumeSizeInGB and InstanceCount. If you
use InstanceConfigs, do not provide values for InstanceType,
VolumeSizeInGB or InstanceCount.
instanceConfigs - A list containing the configuration(s) for one or more resources for processing hyperparameter jobs.
These resources include compute instances and storage volumes to use in model training jobs launched
by hyperparameter tuning jobs. The AllocationStrategy controls the order in which
multiple configurations provided in InstanceConfigs are used.
If you only want to use a single instance configuration inside the
HyperParameterTuningResourceConfig API, do not provide a value for
InstanceConfigs. Instead, use InstanceType, VolumeSizeInGB and
InstanceCount. If you use InstanceConfigs, do not provide values for
InstanceType, VolumeSizeInGB or InstanceCount.
HyperParameterTuningResourceConfig.Builder instanceConfigs(Consumer<HyperParameterTuningInstanceConfig.Builder>... instanceConfigs)
A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These
resources include compute instances and storage volumes to use in model training jobs launched by
hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple
configurations provided in InstanceConfigs are used.
If you only want to use a single instance configuration inside the
HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs.
Instead, use InstanceType, VolumeSizeInGB and InstanceCount. If you
use InstanceConfigs, do not provide values for InstanceType,
VolumeSizeInGB or InstanceCount.
HyperParameterTuningInstanceConfig.Builder avoiding
the need to create one manually via
HyperParameterTuningInstanceConfig.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #instanceConfigs(List.
instanceConfigs - a consumer that will call methods on
HyperParameterTuningInstanceConfig.Builder#instanceConfigs(java.util.Collection) Copyright © 2022. All rights reserved.