/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

This structure specifies how to split the data into train and validation * datasets.

The validation and training datasets must contain the same * headers. For jobs created by calling CreateAutoMLJob, the * validation dataset must be less than 2 GB in size.

See Also:

AWS * API Reference

*/ class AutoMLDataSplitConfig { public: AWS_SAGEMAKER_API AutoMLDataSplitConfig(); AWS_SAGEMAKER_API AutoMLDataSplitConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API AutoMLDataSplitConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The validation fraction (optional) is a float that specifies the portion of * the training dataset to be used for validation. The default value is 0.2, and * values must be greater than 0 and less than 1. We recommend setting this value * to be less than 0.5.

*/ inline double GetValidationFraction() const{ return m_validationFraction; } /** *

The validation fraction (optional) is a float that specifies the portion of * the training dataset to be used for validation. The default value is 0.2, and * values must be greater than 0 and less than 1. We recommend setting this value * to be less than 0.5.

*/ inline bool ValidationFractionHasBeenSet() const { return m_validationFractionHasBeenSet; } /** *

The validation fraction (optional) is a float that specifies the portion of * the training dataset to be used for validation. The default value is 0.2, and * values must be greater than 0 and less than 1. We recommend setting this value * to be less than 0.5.

*/ inline void SetValidationFraction(double value) { m_validationFractionHasBeenSet = true; m_validationFraction = value; } /** *

The validation fraction (optional) is a float that specifies the portion of * the training dataset to be used for validation. The default value is 0.2, and * values must be greater than 0 and less than 1. We recommend setting this value * to be less than 0.5.

*/ inline AutoMLDataSplitConfig& WithValidationFraction(double value) { SetValidationFraction(value); return *this;} private: double m_validationFraction; bool m_validationFractionHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws