AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
Namespace: Amazon.SageMaker.Model
Assembly: AWSSDK.SageMaker.dll
Version: 3.x.y.z
public class MetricDefinition
The MetricDefinition type exposes the following members
Name | Description | |
---|---|---|
![]() |
MetricDefinition() |
Name | Type | Description | |
---|---|---|---|
![]() |
Name | System.String |
Gets and sets the property Name. The name of the metric. |
![]() |
Regex | System.String |
Gets and sets the property 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. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5