@Generated(value="software.amazon.awssdk:codegen") public final class MetricDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricDefinition.Builder,MetricDefinition>
Specifies a metric that the training algorithm writes to stderr or stdout. You can view
these logs to understand how your training job performs and check for any errors encountered during training.
SageMaker hyperparameter tuning captures all defined metrics. Specify one of the defined metrics to use as an
objective metric using the TuningObjective parameter in the HyperParameterTrainingJobDefinition API to evaluate job
performance during hyperparameter tuning.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricDefinition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricDefinition.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the metric.
|
String |
regex()
A regular expression that searches the output of a training job and gets the value of the metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricDefinition.Builder> |
serializableBuilderClass() |
MetricDefinition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the metric.
public final String regex()
A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining metrics and environment variables.
public MetricDefinition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricDefinition.Builder,MetricDefinition>public static MetricDefinition.Builder builder()
public static Class<? extends MetricDefinition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.