public static final class AlgorithmSpecification.Builder
extends java.lang.Object
AlgorithmSpecification
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AlgorithmSpecification.Builder |
algorithmName(java.lang.String algorithmName)
Sets the value of
AlgorithmSpecification.getAlgorithmName() |
AlgorithmSpecification |
build()
Builds the configured instance.
|
AlgorithmSpecification.Builder |
metricDefinitions(java.util.List<? extends MetricDefinition> metricDefinitions)
Sets the value of
AlgorithmSpecification.getMetricDefinitions() |
AlgorithmSpecification.Builder |
trainingImage(DockerImage trainingImage)
Sets the value of
AlgorithmSpecification.getTrainingImage() |
AlgorithmSpecification.Builder |
trainingInputMode(InputMode trainingInputMode)
Sets the value of
AlgorithmSpecification.getTrainingInputMode() |
public AlgorithmSpecification.Builder algorithmName(java.lang.String algorithmName)
AlgorithmSpecification.getAlgorithmName()
algorithmName
- Name of the algorithm resource to use for the training job.
This must be an algorithm resource that you created or subscribe to on AWS Marketplace.
If you specify a value for this parameter, you can't specify a value for TrainingImage.this
public AlgorithmSpecification.Builder metricDefinitions(java.util.List<? extends MetricDefinition> metricDefinitions)
AlgorithmSpecification.getMetricDefinitions()
metricDefinitions
- List of metric definition objects.
Each object specifies the metric name and regular expressions used to parse algorithm logs.this
public AlgorithmSpecification.Builder trainingImage(DockerImage trainingImage)
AlgorithmSpecification.getTrainingImage()
trainingImage
- Registry path of the Docker image that contains the training algorithm.this
public AlgorithmSpecification.Builder trainingInputMode(InputMode trainingInputMode)
AlgorithmSpecification.getTrainingInputMode()
trainingInputMode
- Input mode that the algorithm supports.this
public AlgorithmSpecification build()
AlgorithmSpecification
java.lang.NullPointerException
- if any required attribute was not provided