@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HyperParameterTuningJobObjective extends Object implements Serializable, Cloneable, StructuredPojo
Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to
evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest
value for this metric, depending on the value you specify for the Type
parameter. If you want to define
a custom objective metric, see Define
metrics and environment variables.
Constructor and Description |
---|
HyperParameterTuningJobObjective() |
Modifier and Type | Method and Description |
---|---|
HyperParameterTuningJobObjective |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
The name of the metric to use for the objective metric.
|
String |
getType()
Whether to minimize or maximize the objective metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricName(String metricName)
The name of the metric to use for the objective metric.
|
void |
setType(String type)
Whether to minimize or maximize the objective metric.
|
String |
toString()
Returns a string representation of this object.
|
HyperParameterTuningJobObjective |
withMetricName(String metricName)
The name of the metric to use for the objective metric.
|
HyperParameterTuningJobObjective |
withType(HyperParameterTuningJobObjectiveType type)
Whether to minimize or maximize the objective metric.
|
HyperParameterTuningJobObjective |
withType(String type)
Whether to minimize or maximize the objective metric.
|
public void setType(String type)
Whether to minimize or maximize the objective metric.
type
- Whether to minimize or maximize the objective metric.HyperParameterTuningJobObjectiveType
public String getType()
Whether to minimize or maximize the objective metric.
HyperParameterTuningJobObjectiveType
public HyperParameterTuningJobObjective withType(String type)
Whether to minimize or maximize the objective metric.
type
- Whether to minimize or maximize the objective metric.HyperParameterTuningJobObjectiveType
public HyperParameterTuningJobObjective withType(HyperParameterTuningJobObjectiveType type)
Whether to minimize or maximize the objective metric.
type
- Whether to minimize or maximize the objective metric.HyperParameterTuningJobObjectiveType
public void setMetricName(String metricName)
The name of the metric to use for the objective metric.
metricName
- The name of the metric to use for the objective metric.public String getMetricName()
The name of the metric to use for the objective metric.
public HyperParameterTuningJobObjective withMetricName(String metricName)
The name of the metric to use for the objective metric.
metricName
- The name of the metric to use for the objective metric.public String toString()
toString
in class Object
Object.toString()
public HyperParameterTuningJobObjective clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.