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

A channel is a named input source that training algorithms can consume. The * validation dataset size is limited to less than 2 GB. The training dataset size * must be less than 100 GB. For more information, see * Channel.

A validation dataset must contain the same headers as * the training dataset.

See Also:

AWS * API Reference

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

The data source for an AutoML channel.

*/ inline const AutoMLDataSource& GetDataSource() const{ return m_dataSource; } /** *

The data source for an AutoML channel.

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

The data source for an AutoML channel.

*/ inline void SetDataSource(const AutoMLDataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

The data source for an AutoML channel.

*/ inline void SetDataSource(AutoMLDataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

The data source for an AutoML channel.

*/ inline AutoMLChannel& WithDataSource(const AutoMLDataSource& value) { SetDataSource(value); return *this;} /** *

The data source for an AutoML channel.

*/ inline AutoMLChannel& WithDataSource(AutoMLDataSource&& value) { SetDataSource(std::move(value)); return *this;} /** *

You can use Gzip or None. The default value is * None.

*/ inline const CompressionType& GetCompressionType() const{ return m_compressionType; } /** *

You can use Gzip or None. The default value is * None.

*/ inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; } /** *

You can use Gzip or None. The default value is * None.

*/ inline void SetCompressionType(const CompressionType& value) { m_compressionTypeHasBeenSet = true; m_compressionType = value; } /** *

You can use Gzip or None. The default value is * None.

*/ inline void SetCompressionType(CompressionType&& value) { m_compressionTypeHasBeenSet = true; m_compressionType = std::move(value); } /** *

You can use Gzip or None. The default value is * None.

*/ inline AutoMLChannel& WithCompressionType(const CompressionType& value) { SetCompressionType(value); return *this;} /** *

You can use Gzip or None. The default value is * None.

*/ inline AutoMLChannel& WithCompressionType(CompressionType&& value) { SetCompressionType(std::move(value)); return *this;} /** *

The name of the target variable in supervised learning, usually represented * by 'y'.

*/ inline const Aws::String& GetTargetAttributeName() const{ return m_targetAttributeName; } /** *

The name of the target variable in supervised learning, usually represented * by 'y'.

*/ inline bool TargetAttributeNameHasBeenSet() const { return m_targetAttributeNameHasBeenSet; } /** *

The name of the target variable in supervised learning, usually represented * by 'y'.

*/ inline void SetTargetAttributeName(const Aws::String& value) { m_targetAttributeNameHasBeenSet = true; m_targetAttributeName = value; } /** *

The name of the target variable in supervised learning, usually represented * by 'y'.

*/ inline void SetTargetAttributeName(Aws::String&& value) { m_targetAttributeNameHasBeenSet = true; m_targetAttributeName = std::move(value); } /** *

The name of the target variable in supervised learning, usually represented * by 'y'.

*/ inline void SetTargetAttributeName(const char* value) { m_targetAttributeNameHasBeenSet = true; m_targetAttributeName.assign(value); } /** *

The name of the target variable in supervised learning, usually represented * by 'y'.

*/ inline AutoMLChannel& WithTargetAttributeName(const Aws::String& value) { SetTargetAttributeName(value); return *this;} /** *

The name of the target variable in supervised learning, usually represented * by 'y'.

*/ inline AutoMLChannel& WithTargetAttributeName(Aws::String&& value) { SetTargetAttributeName(std::move(value)); return *this;} /** *

The name of the target variable in supervised learning, usually represented * by 'y'.

*/ inline AutoMLChannel& WithTargetAttributeName(const char* value) { SetTargetAttributeName(value); return *this;} /** *

The content type of the data from the input source. You can use * text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The content type of the data from the input source. You can use * text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The content type of the data from the input source. You can use * text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The content type of the data from the input source. You can use * text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The content type of the data from the input source. You can use * text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The content type of the data from the input source. You can use * text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline AutoMLChannel& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The content type of the data from the input source. You can use * text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline AutoMLChannel& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The content type of the data from the input source. You can use * text/csv;header=present or * x-application/vnd.amazon+parquet. The default value is * text/csv;header=present.

*/ inline AutoMLChannel& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

The channel type (optional) is an enum string. The default value * is training. Channels for training and validation must share the * same ContentType and TargetAttributeName. For * information on specifying training and validation channel types, see How * to specify training and validation datasets.

*/ inline const AutoMLChannelType& GetChannelType() const{ return m_channelType; } /** *

The channel type (optional) is an enum string. The default value * is training. Channels for training and validation must share the * same ContentType and TargetAttributeName. For * information on specifying training and validation channel types, see How * to specify training and validation datasets.

*/ inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; } /** *

The channel type (optional) is an enum string. The default value * is training. Channels for training and validation must share the * same ContentType and TargetAttributeName. For * information on specifying training and validation channel types, see How * to specify training and validation datasets.

*/ inline void SetChannelType(const AutoMLChannelType& value) { m_channelTypeHasBeenSet = true; m_channelType = value; } /** *

The channel type (optional) is an enum string. The default value * is training. Channels for training and validation must share the * same ContentType and TargetAttributeName. For * information on specifying training and validation channel types, see How * to specify training and validation datasets.

*/ inline void SetChannelType(AutoMLChannelType&& value) { m_channelTypeHasBeenSet = true; m_channelType = std::move(value); } /** *

The channel type (optional) is an enum string. The default value * is training. Channels for training and validation must share the * same ContentType and TargetAttributeName. For * information on specifying training and validation channel types, see How * to specify training and validation datasets.

*/ inline AutoMLChannel& WithChannelType(const AutoMLChannelType& value) { SetChannelType(value); return *this;} /** *

The channel type (optional) is an enum string. The default value * is training. Channels for training and validation must share the * same ContentType and TargetAttributeName. For * information on specifying training and validation channel types, see How * to specify training and validation datasets.

*/ inline AutoMLChannel& WithChannelType(AutoMLChannelType&& value) { SetChannelType(std::move(value)); return *this;} /** *

If specified, this column name indicates which column of the dataset should * be treated as sample weights for use by the objective metric during the * training, evaluation, and the selection of the best model. This column is not * considered as a predictive feature. For more information on Autopilot metrics, * see Metrics * and validation.

Sample weights should be numeric, non-negative, with * larger values indicating which rows are more important than others. Data points * that have invalid or no weight value are excluded.

Support for sample * weights is available in Ensembling * mode only.

*/ inline const Aws::String& GetSampleWeightAttributeName() const{ return m_sampleWeightAttributeName; } /** *

If specified, this column name indicates which column of the dataset should * be treated as sample weights for use by the objective metric during the * training, evaluation, and the selection of the best model. This column is not * considered as a predictive feature. For more information on Autopilot metrics, * see Metrics * and validation.

Sample weights should be numeric, non-negative, with * larger values indicating which rows are more important than others. Data points * that have invalid or no weight value are excluded.

Support for sample * weights is available in Ensembling * mode only.

*/ inline bool SampleWeightAttributeNameHasBeenSet() const { return m_sampleWeightAttributeNameHasBeenSet; } /** *

If specified, this column name indicates which column of the dataset should * be treated as sample weights for use by the objective metric during the * training, evaluation, and the selection of the best model. This column is not * considered as a predictive feature. For more information on Autopilot metrics, * see Metrics * and validation.

Sample weights should be numeric, non-negative, with * larger values indicating which rows are more important than others. Data points * that have invalid or no weight value are excluded.

Support for sample * weights is available in Ensembling * mode only.

*/ inline void SetSampleWeightAttributeName(const Aws::String& value) { m_sampleWeightAttributeNameHasBeenSet = true; m_sampleWeightAttributeName = value; } /** *

If specified, this column name indicates which column of the dataset should * be treated as sample weights for use by the objective metric during the * training, evaluation, and the selection of the best model. This column is not * considered as a predictive feature. For more information on Autopilot metrics, * see Metrics * and validation.

Sample weights should be numeric, non-negative, with * larger values indicating which rows are more important than others. Data points * that have invalid or no weight value are excluded.

Support for sample * weights is available in Ensembling * mode only.

*/ inline void SetSampleWeightAttributeName(Aws::String&& value) { m_sampleWeightAttributeNameHasBeenSet = true; m_sampleWeightAttributeName = std::move(value); } /** *

If specified, this column name indicates which column of the dataset should * be treated as sample weights for use by the objective metric during the * training, evaluation, and the selection of the best model. This column is not * considered as a predictive feature. For more information on Autopilot metrics, * see Metrics * and validation.

Sample weights should be numeric, non-negative, with * larger values indicating which rows are more important than others. Data points * that have invalid or no weight value are excluded.

Support for sample * weights is available in Ensembling * mode only.

*/ inline void SetSampleWeightAttributeName(const char* value) { m_sampleWeightAttributeNameHasBeenSet = true; m_sampleWeightAttributeName.assign(value); } /** *

If specified, this column name indicates which column of the dataset should * be treated as sample weights for use by the objective metric during the * training, evaluation, and the selection of the best model. This column is not * considered as a predictive feature. For more information on Autopilot metrics, * see Metrics * and validation.

Sample weights should be numeric, non-negative, with * larger values indicating which rows are more important than others. Data points * that have invalid or no weight value are excluded.

Support for sample * weights is available in Ensembling * mode only.

*/ inline AutoMLChannel& WithSampleWeightAttributeName(const Aws::String& value) { SetSampleWeightAttributeName(value); return *this;} /** *

If specified, this column name indicates which column of the dataset should * be treated as sample weights for use by the objective metric during the * training, evaluation, and the selection of the best model. This column is not * considered as a predictive feature. For more information on Autopilot metrics, * see Metrics * and validation.

Sample weights should be numeric, non-negative, with * larger values indicating which rows are more important than others. Data points * that have invalid or no weight value are excluded.

Support for sample * weights is available in Ensembling * mode only.

*/ inline AutoMLChannel& WithSampleWeightAttributeName(Aws::String&& value) { SetSampleWeightAttributeName(std::move(value)); return *this;} /** *

If specified, this column name indicates which column of the dataset should * be treated as sample weights for use by the objective metric during the * training, evaluation, and the selection of the best model. This column is not * considered as a predictive feature. For more information on Autopilot metrics, * see Metrics * and validation.

Sample weights should be numeric, non-negative, with * larger values indicating which rows are more important than others. Data points * that have invalid or no weight value are excluded.

Support for sample * weights is available in Ensembling * mode only.

*/ inline AutoMLChannel& WithSampleWeightAttributeName(const char* value) { SetSampleWeightAttributeName(value); return *this;} private: AutoMLDataSource m_dataSource; bool m_dataSourceHasBeenSet = false; CompressionType m_compressionType; bool m_compressionTypeHasBeenSet = false; Aws::String m_targetAttributeName; bool m_targetAttributeNameHasBeenSet = false; Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; AutoMLChannelType m_channelType; bool m_channelTypeHasBeenSet = false; Aws::String m_sampleWeightAttributeName; bool m_sampleWeightAttributeNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws