@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AlgorithmSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the training algorithm to use in a CreateTrainingJob request.
For more information about algorithms provided by Amazon SageMaker, see Algorithms. For information about using your own algorithms, see Using Your Own Algorithms with Amazon SageMaker.
Constructor and Description |
---|
AlgorithmSpecification() |
Modifier and Type | Method and Description |
---|---|
AlgorithmSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getAlgorithmName()
The name of the algorithm resource to use for the training job.
|
Boolean |
getEnableSageMakerMetricsTimeSeries()
To generate and save time-series metrics during training, set to
true . |
List<MetricDefinition> |
getMetricDefinitions()
A list of metric definition objects.
|
String |
getTrainingImage()
The registry path of the Docker image that contains the training algorithm.
|
String |
getTrainingInputMode()
The input mode that the algorithm supports.
|
int |
hashCode() |
Boolean |
isEnableSageMakerMetricsTimeSeries()
To generate and save time-series metrics during training, set to
true . |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlgorithmName(String algorithmName)
The name of the algorithm resource to use for the training job.
|
void |
setEnableSageMakerMetricsTimeSeries(Boolean enableSageMakerMetricsTimeSeries)
To generate and save time-series metrics during training, set to
true . |
void |
setMetricDefinitions(Collection<MetricDefinition> metricDefinitions)
A list of metric definition objects.
|
void |
setTrainingImage(String trainingImage)
The registry path of the Docker image that contains the training algorithm.
|
void |
setTrainingInputMode(String trainingInputMode)
The input mode that the algorithm supports.
|
String |
toString()
Returns a string representation of this object.
|
AlgorithmSpecification |
withAlgorithmName(String algorithmName)
The name of the algorithm resource to use for the training job.
|
AlgorithmSpecification |
withEnableSageMakerMetricsTimeSeries(Boolean enableSageMakerMetricsTimeSeries)
To generate and save time-series metrics during training, set to
true . |
AlgorithmSpecification |
withMetricDefinitions(Collection<MetricDefinition> metricDefinitions)
A list of metric definition objects.
|
AlgorithmSpecification |
withMetricDefinitions(MetricDefinition... metricDefinitions)
A list of metric definition objects.
|
AlgorithmSpecification |
withTrainingImage(String trainingImage)
The registry path of the Docker image that contains the training algorithm.
|
AlgorithmSpecification |
withTrainingInputMode(String trainingInputMode)
The input mode that the algorithm supports.
|
AlgorithmSpecification |
withTrainingInputMode(TrainingInputMode trainingInputMode)
The input mode that the algorithm supports.
|
public void setTrainingImage(String trainingImage)
The registry path of the Docker image that contains the training algorithm. For information about docker registry
paths for built-in algorithms, see Algorithms
Provided by Amazon SageMaker: Common Parameters. Amazon SageMaker supports both
registry/repository[:tag]
and registry/repository[@digest]
image path formats. For more
information, see Using Your Own
Algorithms with Amazon SageMaker.
trainingImage
- The registry path of the Docker image that contains the training algorithm. For information about docker
registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters. Amazon SageMaker supports both
registry/repository[:tag]
and registry/repository[@digest]
image path formats.
For more information, see Using Your Own Algorithms with
Amazon SageMaker.public String getTrainingImage()
The registry path of the Docker image that contains the training algorithm. For information about docker registry
paths for built-in algorithms, see Algorithms
Provided by Amazon SageMaker: Common Parameters. Amazon SageMaker supports both
registry/repository[:tag]
and registry/repository[@digest]
image path formats. For more
information, see Using Your Own
Algorithms with Amazon SageMaker.
registry/repository[:tag]
and registry/repository[@digest]
image path formats.
For more information, see Using Your Own Algorithms
with Amazon SageMaker.public AlgorithmSpecification withTrainingImage(String trainingImage)
The registry path of the Docker image that contains the training algorithm. For information about docker registry
paths for built-in algorithms, see Algorithms
Provided by Amazon SageMaker: Common Parameters. Amazon SageMaker supports both
registry/repository[:tag]
and registry/repository[@digest]
image path formats. For more
information, see Using Your Own
Algorithms with Amazon SageMaker.
trainingImage
- The registry path of the Docker image that contains the training algorithm. For information about docker
registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters. Amazon SageMaker supports both
registry/repository[:tag]
and registry/repository[@digest]
image path formats.
For more information, see Using Your Own Algorithms with
Amazon SageMaker.public void setAlgorithmName(String algorithmName)
The 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
.
algorithmName
- The 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
.public String getAlgorithmName()
The 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
.
TrainingImage
.public AlgorithmSpecification withAlgorithmName(String algorithmName)
The 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
.
algorithmName
- The 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
.public void setTrainingInputMode(String trainingInputMode)
The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support, see Algorithms. If an algorithm supports the
File
input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage
Volume, and mounts the directory to docker volume for training container. If an algorithm supports the
Pipe
input mode, Amazon SageMaker streams data directly from S3 to the container.
In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.
For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.
trainingInputMode
- The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support,
see Algorithms. If an algorithm
supports the File
input mode, Amazon SageMaker downloads the training data from S3 to the
provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an
algorithm supports the Pipe
input mode, Amazon SageMaker streams data directly from S3 to the
container.
In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.
For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.
TrainingInputMode
public String getTrainingInputMode()
The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support, see Algorithms. If an algorithm supports the
File
input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage
Volume, and mounts the directory to docker volume for training container. If an algorithm supports the
Pipe
input mode, Amazon SageMaker streams data directly from S3 to the container.
In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.
For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.
File
input mode, Amazon SageMaker downloads the training data from S3 to the
provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an
algorithm supports the Pipe
input mode, Amazon SageMaker streams data directly from S3 to
the container.
In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.
For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.
TrainingInputMode
public AlgorithmSpecification withTrainingInputMode(String trainingInputMode)
The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support, see Algorithms. If an algorithm supports the
File
input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage
Volume, and mounts the directory to docker volume for training container. If an algorithm supports the
Pipe
input mode, Amazon SageMaker streams data directly from S3 to the container.
In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.
For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.
trainingInputMode
- The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support,
see Algorithms. If an algorithm
supports the File
input mode, Amazon SageMaker downloads the training data from S3 to the
provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an
algorithm supports the Pipe
input mode, Amazon SageMaker streams data directly from S3 to the
container.
In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.
For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.
TrainingInputMode
public AlgorithmSpecification withTrainingInputMode(TrainingInputMode trainingInputMode)
The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support, see Algorithms. If an algorithm supports the
File
input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage
Volume, and mounts the directory to docker volume for training container. If an algorithm supports the
Pipe
input mode, Amazon SageMaker streams data directly from S3 to the container.
In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.
For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.
trainingInputMode
- The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support,
see Algorithms. If an algorithm
supports the File
input mode, Amazon SageMaker downloads the training data from S3 to the
provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an
algorithm supports the Pipe
input mode, Amazon SageMaker streams data directly from S3 to the
container.
In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.
For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.
TrainingInputMode
public List<MetricDefinition> getMetricDefinitions()
A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.
public void setMetricDefinitions(Collection<MetricDefinition> metricDefinitions)
A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.
metricDefinitions
- A list of metric definition objects. Each object specifies the metric name and regular expressions used to
parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.public AlgorithmSpecification withMetricDefinitions(MetricDefinition... metricDefinitions)
A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.
NOTE: This method appends the values to the existing list (if any). Use
setMetricDefinitions(java.util.Collection)
or withMetricDefinitions(java.util.Collection)
if
you want to override the existing values.
metricDefinitions
- A list of metric definition objects. Each object specifies the metric name and regular expressions used to
parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.public AlgorithmSpecification withMetricDefinitions(Collection<MetricDefinition> metricDefinitions)
A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.
metricDefinitions
- A list of metric definition objects. Each object specifies the metric name and regular expressions used to
parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.public void setEnableSageMakerMetricsTimeSeries(Boolean enableSageMakerMetricsTimeSeries)
To generate and save time-series metrics during training, set to true
. The default is
false
and time-series metrics aren't generated except in the following cases:
You use one of the Amazon SageMaker built-in algorithms
You use one of the following Prebuilt Amazon SageMaker Docker Images:
Tensorflow (version >= 1.15)
MXNet (version >= 1.6)
PyTorch (version >= 1.3)
You specify at least one MetricDefinition
enableSageMakerMetricsTimeSeries
- To generate and save time-series metrics during training, set to true
. The default is
false
and time-series metrics aren't generated except in the following cases:
You use one of the Amazon SageMaker built-in algorithms
You use one of the following Prebuilt Amazon SageMaker Docker Images:
Tensorflow (version >= 1.15)
MXNet (version >= 1.6)
PyTorch (version >= 1.3)
You specify at least one MetricDefinition
public Boolean getEnableSageMakerMetricsTimeSeries()
To generate and save time-series metrics during training, set to true
. The default is
false
and time-series metrics aren't generated except in the following cases:
You use one of the Amazon SageMaker built-in algorithms
You use one of the following Prebuilt Amazon SageMaker Docker Images:
Tensorflow (version >= 1.15)
MXNet (version >= 1.6)
PyTorch (version >= 1.3)
You specify at least one MetricDefinition
true
. The default is
false
and time-series metrics aren't generated except in the following cases:
You use one of the Amazon SageMaker built-in algorithms
You use one of the following Prebuilt Amazon SageMaker Docker Images:
Tensorflow (version >= 1.15)
MXNet (version >= 1.6)
PyTorch (version >= 1.3)
You specify at least one MetricDefinition
public AlgorithmSpecification withEnableSageMakerMetricsTimeSeries(Boolean enableSageMakerMetricsTimeSeries)
To generate and save time-series metrics during training, set to true
. The default is
false
and time-series metrics aren't generated except in the following cases:
You use one of the Amazon SageMaker built-in algorithms
You use one of the following Prebuilt Amazon SageMaker Docker Images:
Tensorflow (version >= 1.15)
MXNet (version >= 1.6)
PyTorch (version >= 1.3)
You specify at least one MetricDefinition
enableSageMakerMetricsTimeSeries
- To generate and save time-series metrics during training, set to true
. The default is
false
and time-series metrics aren't generated except in the following cases:
You use one of the Amazon SageMaker built-in algorithms
You use one of the following Prebuilt Amazon SageMaker Docker Images:
Tensorflow (version >= 1.15)
MXNet (version >= 1.6)
PyTorch (version >= 1.3)
You specify at least one MetricDefinition
public Boolean isEnableSageMakerMetricsTimeSeries()
To generate and save time-series metrics during training, set to true
. The default is
false
and time-series metrics aren't generated except in the following cases:
You use one of the Amazon SageMaker built-in algorithms
You use one of the following Prebuilt Amazon SageMaker Docker Images:
Tensorflow (version >= 1.15)
MXNet (version >= 1.6)
PyTorch (version >= 1.3)
You specify at least one MetricDefinition
true
. The default is
false
and time-series metrics aren't generated except in the following cases:
You use one of the Amazon SageMaker built-in algorithms
You use one of the following Prebuilt Amazon SageMaker Docker Images:
Tensorflow (version >= 1.15)
MXNet (version >= 1.6)
PyTorch (version >= 1.3)
You specify at least one MetricDefinition
public String toString()
toString
in class Object
Object.toString()
public AlgorithmSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.