@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HPOObjective extends Object implements Serializable, Cloneable, StructuredPojo
The metric to optimize during hyperparameter optimization (HPO).
Amazon Personalize doesn't support configuring the hpoObjective at this time.
| Constructor and Description |
|---|
HPOObjective() |
| Modifier and Type | Method and Description |
|---|---|
HPOObjective |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
The name of the metric.
|
String |
getMetricRegex()
A regular expression for finding the metric in the training job logs.
|
String |
getType()
The type of the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMetricName(String metricName)
The name of the metric.
|
void |
setMetricRegex(String metricRegex)
A regular expression for finding the metric in the training job logs.
|
void |
setType(String type)
The type of the metric.
|
String |
toString()
Returns a string representation of this object.
|
HPOObjective |
withMetricName(String metricName)
The name of the metric.
|
HPOObjective |
withMetricRegex(String metricRegex)
A regular expression for finding the metric in the training job logs.
|
HPOObjective |
withType(String type)
The type of the metric.
|
public void setType(String type)
The type of the metric. Valid values are Maximize and Minimize.
type - The type of the metric. Valid values are Maximize and Minimize.public String getType()
The type of the metric. Valid values are Maximize and Minimize.
Maximize and Minimize.public HPOObjective withType(String type)
The type of the metric. Valid values are Maximize and Minimize.
type - The type of the metric. Valid values are Maximize and Minimize.public void setMetricName(String metricName)
The name of the metric.
metricName - The name of the metric.public String getMetricName()
The name of the metric.
public HPOObjective withMetricName(String metricName)
The name of the metric.
metricName - The name of the metric.public void setMetricRegex(String metricRegex)
A regular expression for finding the metric in the training job logs.
metricRegex - A regular expression for finding the metric in the training job logs.public String getMetricRegex()
A regular expression for finding the metric in the training job logs.
public HPOObjective withMetricRegex(String metricRegex)
A regular expression for finding the metric in the training job logs.
metricRegex - A regular expression for finding the metric in the training job logs.public String toString()
toString in class ObjectObject.toString()public HPOObjective clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.