/* * 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 which training algorithm to use for training jobs that a hyperparameter /// tuning job launches and the metrics to monitor. /// public partial class HyperParameterAlgorithmSpecification { private string _algorithmName; private List _metricDefinitions = new List(); private string _trainingImage; private TrainingInputMode _trainingInputMode; /// /// Gets and sets the property AlgorithmName. /// /// The name of the resource algorithm to use for the hyperparameter tuning job. If you /// specify a value for this parameter, do not specify a value for TrainingImage. /// /// [AWSProperty(Min=1, Max=170)] public string AlgorithmName { get { return this._algorithmName; } set { this._algorithmName = value; } } // Check to see if AlgorithmName property is set internal bool IsSetAlgorithmName() { return this._algorithmName != null; } /// /// Gets and sets the property MetricDefinitions. /// /// An array of MetricDefinition /// objects that specify the metrics that the algorithm emits. /// /// [AWSProperty(Min=0, Max=40)] public List MetricDefinitions { get { return this._metricDefinitions; } set { this._metricDefinitions = value; } } // Check to see if MetricDefinitions property is set internal bool IsSetMetricDefinitions() { return this._metricDefinitions != null && this._metricDefinitions.Count > 0; } /// /// Gets and sets the property TrainingImage. /// /// The registry path of the Docker image that contains the training algorithm. For information /// about Docker registry paths for built-in algorithms, see Algorithms /// Provided by Amazon SageMaker: Common Parameters. SageMaker supports both registry/repository[:tag] /// and registry/repository[@digest] image path formats. For more information, /// see Using /// Your Own Algorithms with Amazon SageMaker. /// /// [AWSProperty(Max=255)] public string TrainingImage { get { return this._trainingImage; } set { this._trainingImage = value; } } // Check to see if TrainingImage property is set internal bool IsSetTrainingImage() { return this._trainingImage != null; } /// /// Gets and sets the property TrainingInputMode. /// [AWSProperty(Required=true)] public TrainingInputMode TrainingInputMode { get { return this._trainingInputMode; } set { this._trainingInputMode = value; } } // Check to see if TrainingInputMode property is set internal bool IsSetTrainingInputMode() { return this._trainingInputMode != null; } } }