/* * 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 { /// /// The configuration for Hyperband, a multi-fidelity based hyperparameter /// tuning strategy. Hyperband uses the final and intermediate results of /// a training job to dynamically allocate resources to utilized hyperparameter configurations /// while automatically stopping under-performing configurations. This parameter should /// be provided only if Hyperband is selected as the StrategyConfig /// under the HyperParameterTuningJobConfig API. /// public partial class HyperbandStrategyConfig { private int? _maxResource; private int? _minResource; /// /// Gets and sets the property MaxResource. /// /// The maximum number of resources (such as epochs) that can be used by a training job /// launched by a hyperparameter tuning job. Once a job reaches the MaxResource /// value, it is stopped. If a value for MaxResource is not provided, and /// Hyperband is selected as the hyperparameter tuning strategy, HyperbandTrainingJ /// attempts to infer MaxResource from the following keys (if present) in /// StaticsHyperParameters: /// /// /// /// If HyperbandStrategyConfig is unable to infer a value for MaxResource, /// it generates a validation error. The maximum value is 20,000 epochs. All metrics that /// correspond to an objective metric are used to derive early /// stopping decisions. For distributive /// training jobs, ensure that duplicate metrics are not printed in the logs across the /// individual nodes in a training job. If multiple nodes are publishing duplicate or /// incorrect metrics, training jobs may make an incorrect stopping decision and stop /// the job prematurely. /// /// [AWSProperty(Min=1)] public int MaxResource { get { return this._maxResource.GetValueOrDefault(); } set { this._maxResource = value; } } // Check to see if MaxResource property is set internal bool IsSetMaxResource() { return this._maxResource.HasValue; } /// /// Gets and sets the property MinResource. /// /// The minimum number of resources (such as epochs) that can be used by a training job /// launched by a hyperparameter tuning job. If the value for MinResource /// has not been reached, the training job is not stopped by Hyperband. /// /// [AWSProperty(Min=1)] public int MinResource { get { return this._minResource.GetValueOrDefault(); } set { this._minResource = value; } } // Check to see if MinResource property is set internal bool IsSetMinResource() { return this._minResource.HasValue; } } }