You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SageMaker::Types::MetricDefinition

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing MetricDefinition as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "MetricName", # required
  regex: "MetricRegex", # required
}

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.

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the metric.

Returns:

  • (String)

    The name of the metric.

#regexString

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.

Returns:

  • (String)

    A regular expression that searches the output of a training job and gets the value of the metric.