/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SageMaker.Model
{
///
/// 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.
///
public partial class MetricDefinition
{
private string _name;
private string _regex;
///
/// Gets and sets the property Name.
///
/// The name of the metric.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// 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.
///
///
[AWSProperty(Required=true, Min=1, Max=500)]
public string Regex
{
get { return this._regex; }
set { this._regex = value; }
}
// Check to see if Regex property is set
internal bool IsSetRegex()
{
return this._regex != null;
}
}
}