Interface TrainingSpecification.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TrainingSpecification.Builder,TrainingSpecification>
,SdkBuilder<TrainingSpecification.Builder,TrainingSpecification>
,SdkPojo
- Enclosing class:
- TrainingSpecification
public static interface TrainingSpecification.Builder extends SdkPojo, CopyableBuilder<TrainingSpecification.Builder,TrainingSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TrainingSpecification.Builder
additionalS3DataSource(Consumer<AdditionalS3DataSource.Builder> additionalS3DataSource)
The additional data source used during the training job.TrainingSpecification.Builder
additionalS3DataSource(AdditionalS3DataSource additionalS3DataSource)
The additional data source used during the training job.TrainingSpecification.Builder
metricDefinitions(Collection<MetricDefinition> metricDefinitions)
A list ofMetricDefinition
objects, which are used for parsing metrics generated by the algorithm.TrainingSpecification.Builder
metricDefinitions(Consumer<MetricDefinition.Builder>... metricDefinitions)
A list ofMetricDefinition
objects, which are used for parsing metrics generated by the algorithm.TrainingSpecification.Builder
metricDefinitions(MetricDefinition... metricDefinitions)
A list ofMetricDefinition
objects, which are used for parsing metrics generated by the algorithm.TrainingSpecification.Builder
supportedHyperParameters(Collection<HyperParameterSpecification> supportedHyperParameters)
A list of theHyperParameterSpecification
objects, that define the supported hyperparameters.TrainingSpecification.Builder
supportedHyperParameters(Consumer<HyperParameterSpecification.Builder>... supportedHyperParameters)
A list of theHyperParameterSpecification
objects, that define the supported hyperparameters.TrainingSpecification.Builder
supportedHyperParameters(HyperParameterSpecification... supportedHyperParameters)
A list of theHyperParameterSpecification
objects, that define the supported hyperparameters.TrainingSpecification.Builder
supportedTrainingInstanceTypes(Collection<TrainingInstanceType> supportedTrainingInstanceTypes)
A list of the instance types that this algorithm can use for training.TrainingSpecification.Builder
supportedTrainingInstanceTypes(TrainingInstanceType... supportedTrainingInstanceTypes)
A list of the instance types that this algorithm can use for training.TrainingSpecification.Builder
supportedTrainingInstanceTypesWithStrings(String... supportedTrainingInstanceTypes)
A list of the instance types that this algorithm can use for training.TrainingSpecification.Builder
supportedTrainingInstanceTypesWithStrings(Collection<String> supportedTrainingInstanceTypes)
A list of the instance types that this algorithm can use for training.TrainingSpecification.Builder
supportedTuningJobObjectiveMetrics(Collection<HyperParameterTuningJobObjective> supportedTuningJobObjectiveMetrics)
A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.TrainingSpecification.Builder
supportedTuningJobObjectiveMetrics(Consumer<HyperParameterTuningJobObjective.Builder>... supportedTuningJobObjectiveMetrics)
A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.TrainingSpecification.Builder
supportedTuningJobObjectiveMetrics(HyperParameterTuningJobObjective... supportedTuningJobObjectiveMetrics)
A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.TrainingSpecification.Builder
supportsDistributedTraining(Boolean supportsDistributedTraining)
Indicates whether the algorithm supports distributed training.TrainingSpecification.Builder
trainingChannels(Collection<ChannelSpecification> trainingChannels)
A list ofChannelSpecification
objects, which specify the input sources to be used by the algorithm.TrainingSpecification.Builder
trainingChannels(Consumer<ChannelSpecification.Builder>... trainingChannels)
A list ofChannelSpecification
objects, which specify the input sources to be used by the algorithm.TrainingSpecification.Builder
trainingChannels(ChannelSpecification... trainingChannels)
A list ofChannelSpecification
objects, which specify the input sources to be used by the algorithm.TrainingSpecification.Builder
trainingImage(String trainingImage)
The Amazon ECR registry path of the Docker image that contains the training algorithm.TrainingSpecification.Builder
trainingImageDigest(String trainingImageDigest)
An MD5 hash of the training algorithm that identifies the Docker image used for training.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
trainingImage
TrainingSpecification.Builder trainingImage(String trainingImage)
The Amazon ECR registry path of the Docker image that contains the training algorithm.
- Parameters:
trainingImage
- The Amazon ECR registry path of the Docker image that contains the training algorithm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingImageDigest
TrainingSpecification.Builder trainingImageDigest(String trainingImageDigest)
An MD5 hash of the training algorithm that identifies the Docker image used for training.
- Parameters:
trainingImageDigest
- An MD5 hash of the training algorithm that identifies the Docker image used for training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedHyperParameters
TrainingSpecification.Builder supportedHyperParameters(Collection<HyperParameterSpecification> supportedHyperParameters)
A list of the
HyperParameterSpecification
objects, that define the supported hyperparameters. This is required if the algorithm supports automatic model tuning.>- Parameters:
supportedHyperParameters
- A list of theHyperParameterSpecification
objects, that define the supported hyperparameters. This is required if the algorithm supports automatic model tuning.>- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedHyperParameters
TrainingSpecification.Builder supportedHyperParameters(HyperParameterSpecification... supportedHyperParameters)
A list of the
HyperParameterSpecification
objects, that define the supported hyperparameters. This is required if the algorithm supports automatic model tuning.>- Parameters:
supportedHyperParameters
- A list of theHyperParameterSpecification
objects, that define the supported hyperparameters. This is required if the algorithm supports automatic model tuning.>- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedHyperParameters
TrainingSpecification.Builder supportedHyperParameters(Consumer<HyperParameterSpecification.Builder>... supportedHyperParameters)
A list of the
This is a convenience method that creates an instance of theHyperParameterSpecification
objects, that define the supported hyperparameters. This is required if the algorithm supports automatic model tuning.>HyperParameterSpecification.Builder
avoiding the need to create one manually viaHyperParameterSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#supportedHyperParameters(List
.) - Parameters:
supportedHyperParameters
- a consumer that will call methods onHyperParameterSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#supportedHyperParameters(java.util.Collection
)
-
supportedTrainingInstanceTypesWithStrings
TrainingSpecification.Builder supportedTrainingInstanceTypesWithStrings(Collection<String> supportedTrainingInstanceTypes)
A list of the instance types that this algorithm can use for training.
- Parameters:
supportedTrainingInstanceTypes
- A list of the instance types that this algorithm can use for training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedTrainingInstanceTypesWithStrings
TrainingSpecification.Builder supportedTrainingInstanceTypesWithStrings(String... supportedTrainingInstanceTypes)
A list of the instance types that this algorithm can use for training.
- Parameters:
supportedTrainingInstanceTypes
- A list of the instance types that this algorithm can use for training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedTrainingInstanceTypes
TrainingSpecification.Builder supportedTrainingInstanceTypes(Collection<TrainingInstanceType> supportedTrainingInstanceTypes)
A list of the instance types that this algorithm can use for training.
- Parameters:
supportedTrainingInstanceTypes
- A list of the instance types that this algorithm can use for training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedTrainingInstanceTypes
TrainingSpecification.Builder supportedTrainingInstanceTypes(TrainingInstanceType... supportedTrainingInstanceTypes)
A list of the instance types that this algorithm can use for training.
- Parameters:
supportedTrainingInstanceTypes
- A list of the instance types that this algorithm can use for training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportsDistributedTraining
TrainingSpecification.Builder supportsDistributedTraining(Boolean supportsDistributedTraining)
Indicates whether the algorithm supports distributed training. If set to false, buyers can't request more than one instance during training.
- Parameters:
supportsDistributedTraining
- Indicates whether the algorithm supports distributed training. If set to false, buyers can't request more than one instance during training.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDefinitions
TrainingSpecification.Builder metricDefinitions(Collection<MetricDefinition> metricDefinitions)
A list of
MetricDefinition
objects, which are used for parsing metrics generated by the algorithm.- Parameters:
metricDefinitions
- A list ofMetricDefinition
objects, which are used for parsing metrics generated by the algorithm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDefinitions
TrainingSpecification.Builder metricDefinitions(MetricDefinition... metricDefinitions)
A list of
MetricDefinition
objects, which are used for parsing metrics generated by the algorithm.- Parameters:
metricDefinitions
- A list ofMetricDefinition
objects, which are used for parsing metrics generated by the algorithm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDefinitions
TrainingSpecification.Builder metricDefinitions(Consumer<MetricDefinition.Builder>... metricDefinitions)
A list of
This is a convenience method that creates an instance of theMetricDefinition
objects, which are used for parsing metrics generated by the algorithm.MetricDefinition.Builder
avoiding the need to create one manually viaMetricDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#metricDefinitions(List
.) - Parameters:
metricDefinitions
- a consumer that will call methods onMetricDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricDefinitions(java.util.Collection
)
-
trainingChannels
TrainingSpecification.Builder trainingChannels(Collection<ChannelSpecification> trainingChannels)
A list of
ChannelSpecification
objects, which specify the input sources to be used by the algorithm.- Parameters:
trainingChannels
- A list ofChannelSpecification
objects, which specify the input sources to be used by the algorithm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingChannels
TrainingSpecification.Builder trainingChannels(ChannelSpecification... trainingChannels)
A list of
ChannelSpecification
objects, which specify the input sources to be used by the algorithm.- Parameters:
trainingChannels
- A list ofChannelSpecification
objects, which specify the input sources to be used by the algorithm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingChannels
TrainingSpecification.Builder trainingChannels(Consumer<ChannelSpecification.Builder>... trainingChannels)
A list of
This is a convenience method that creates an instance of theChannelSpecification
objects, which specify the input sources to be used by the algorithm.ChannelSpecification.Builder
avoiding the need to create one manually viaChannelSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#trainingChannels(List
.) - Parameters:
trainingChannels
- a consumer that will call methods onChannelSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#trainingChannels(java.util.Collection
)
-
supportedTuningJobObjectiveMetrics
TrainingSpecification.Builder supportedTuningJobObjectiveMetrics(Collection<HyperParameterTuningJobObjective> supportedTuningJobObjectiveMetrics)
A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.
- Parameters:
supportedTuningJobObjectiveMetrics
- A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedTuningJobObjectiveMetrics
TrainingSpecification.Builder supportedTuningJobObjectiveMetrics(HyperParameterTuningJobObjective... supportedTuningJobObjectiveMetrics)
A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.
- Parameters:
supportedTuningJobObjectiveMetrics
- A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedTuningJobObjectiveMetrics
TrainingSpecification.Builder supportedTuningJobObjectiveMetrics(Consumer<HyperParameterTuningJobObjective.Builder>... supportedTuningJobObjectiveMetrics)
A list of the metrics that the algorithm emits that can be used as the objective metric in a hyperparameter tuning job.
This is a convenience method that creates an instance of theHyperParameterTuningJobObjective.Builder
avoiding the need to create one manually viaHyperParameterTuningJobObjective.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#supportedTuningJobObjectiveMetrics(List
.) - Parameters:
supportedTuningJobObjectiveMetrics
- a consumer that will call methods onHyperParameterTuningJobObjective.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#supportedTuningJobObjectiveMetrics(java.util.Collection
)
-
additionalS3DataSource
TrainingSpecification.Builder additionalS3DataSource(AdditionalS3DataSource additionalS3DataSource)
The additional data source used during the training job.
- Parameters:
additionalS3DataSource
- The additional data source used during the training job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalS3DataSource
default TrainingSpecification.Builder additionalS3DataSource(Consumer<AdditionalS3DataSource.Builder> additionalS3DataSource)
The additional data source used during the training job.
This is a convenience method that creates an instance of theAdditionalS3DataSource.Builder
avoiding the need to create one manually viaAdditionalS3DataSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toadditionalS3DataSource(AdditionalS3DataSource)
.- Parameters:
additionalS3DataSource
- a consumer that will call methods onAdditionalS3DataSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
additionalS3DataSource(AdditionalS3DataSource)
-
-