@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
. Amazon
SageMakerhyperparameter tuning captures all defined metrics. You specify one metric that a hyperparameter tuning job
uses as its objective metric to choose the best training job.
Modifier and Type | Class and Description |
---|---|
static interface |
MetricDefinition.Builder |
Modifier and Type | Method and Description |
---|---|
static MetricDefinition.Builder |
builder() |
boolean |
equals(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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String name()
The name of the metric.
public 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 Objective Metrics.
public MetricDefinition.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MetricDefinition.Builder,MetricDefinition>
public static MetricDefinition.Builder builder()
public static Class<? extends MetricDefinition.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.