@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() |
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) |
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) |
AlgorithmSpecification |
withTrainingInputMode(TrainingInputMode trainingInputMode) |
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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services Marketplace. If you specify a value for this parameter,
you can't specify a value for TrainingImage
.public void setTrainingInputMode(String trainingInputMode)
trainingInputMode
- TrainingInputMode
public String getTrainingInputMode()
TrainingInputMode
public AlgorithmSpecification withTrainingInputMode(String trainingInputMode)
trainingInputMode
- TrainingInputMode
public AlgorithmSpecification withTrainingInputMode(TrainingInputMode trainingInputMode)
trainingInputMode
- 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.