/* * 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 { /// /// How long a job is allowed to run, or how many candidates a job is allowed to generate. /// public partial class AutoMLJobCompletionCriteria { private int? _maxAutoMLJobRuntimeInSeconds; private int? _maxCandidates; private int? _maxRuntimePerTrainingJobInSeconds; /// /// Gets and sets the property MaxAutoMLJobRuntimeInSeconds. /// /// The maximum runtime, in seconds, an AutoML job has to complete. /// /// /// /// If an AutoML job exceeds the maximum runtime, the job is stopped automatically and /// its processing is ended gracefully. The AutoML job identifies the best model whose /// training was completed and marks it as the best-performing model. Any unfinished steps /// of the job, such as automatic one-click Autopilot model deployment, are not completed. /// /// [AWSProperty(Min=1)] public int MaxAutoMLJobRuntimeInSeconds { get { return this._maxAutoMLJobRuntimeInSeconds.GetValueOrDefault(); } set { this._maxAutoMLJobRuntimeInSeconds = value; } } // Check to see if MaxAutoMLJobRuntimeInSeconds property is set internal bool IsSetMaxAutoMLJobRuntimeInSeconds() { return this._maxAutoMLJobRuntimeInSeconds.HasValue; } /// /// Gets and sets the property MaxCandidates. /// /// The maximum number of times a training job is allowed to run. /// /// /// /// For text and image classification, as well as time-series forecasting problem types, /// the supported value is 1. For tabular problem types, the maximum value is 750. /// /// [AWSProperty(Min=1, Max=750)] public int MaxCandidates { get { return this._maxCandidates.GetValueOrDefault(); } set { this._maxCandidates = value; } } // Check to see if MaxCandidates property is set internal bool IsSetMaxCandidates() { return this._maxCandidates.HasValue; } /// /// Gets and sets the property MaxRuntimePerTrainingJobInSeconds. /// /// The maximum time, in seconds, that each training job executed inside hyperparameter /// tuning is allowed to run as part of a hyperparameter tuning job. For more information, /// see the StoppingCondition /// used by the CreateHyperParameterTuningJob /// action. /// /// /// /// For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls /// the runtime of the job candidate. /// /// [AWSProperty(Min=1)] public int MaxRuntimePerTrainingJobInSeconds { get { return this._maxRuntimePerTrainingJobInSeconds.GetValueOrDefault(); } set { this._maxRuntimePerTrainingJobInSeconds = value; } } // Check to see if MaxRuntimePerTrainingJobInSeconds property is set internal bool IsSetMaxRuntimePerTrainingJobInSeconds() { return this._maxRuntimePerTrainingJobInSeconds.HasValue; } } }