Class: Aws::SageMaker::Types::MetricDefinition
- Inherits:
-
Struct
- Object
- Struct
- Aws::SageMaker::Types::MetricDefinition
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-sagemaker/types.rb
Overview
When making an API call, you may pass MetricDefinition data as a 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
-
#name ⇒ String
The name of the metric.
-
#regex ⇒ String
A regular expression that searches the output of a training job and gets the value of the metric.
Instance Attribute Details
#name ⇒ String
The name of the metric.
14337 14338 14339 14340 14341 |
# File 'lib/aws-sdk-sagemaker/types.rb', line 14337 class MetricDefinition < Struct.new( :name, :regex) include Aws::Structure end |
#regex ⇒ String
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].
[1]: docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html
14337 14338 14339 14340 14341 |
# File 'lib/aws-sdk-sagemaker/types.rb', line 14337 class MetricDefinition < Struct.new( :name, :regex) include Aws::Structure end |