/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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