Struct aws_sdk_sagemaker::types::builders::AutoMlJobChannelBuilder
source · #[non_exhaustive]pub struct AutoMlJobChannelBuilder { /* private fields */ }
Expand description
A builder for AutoMlJobChannel
.
Implementations§
source§impl AutoMlJobChannelBuilder
impl AutoMlJobChannelBuilder
sourcepub fn channel_type(self, input: AutoMlChannelType) -> Self
pub fn channel_type(self, input: AutoMlChannelType) -> Self
The type of channel. Defines whether the data are used for training or validation. The default value is training
. Channels for training
and validation
must share the same ContentType
The type of channel defaults to training
for the time-series forecasting problem type.
sourcepub fn set_channel_type(self, input: Option<AutoMlChannelType>) -> Self
pub fn set_channel_type(self, input: Option<AutoMlChannelType>) -> Self
The type of channel. Defines whether the data are used for training or validation. The default value is training
. Channels for training
and validation
must share the same ContentType
The type of channel defaults to training
for the time-series forecasting problem type.
sourcepub fn get_channel_type(&self) -> &Option<AutoMlChannelType>
pub fn get_channel_type(&self) -> &Option<AutoMlChannelType>
The type of channel. Defines whether the data are used for training or validation. The default value is training
. Channels for training
and validation
must share the same ContentType
The type of channel defaults to training
for the time-series forecasting problem type.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The content type of the data from the input source. The following are the allowed content types for different problems:
-
For tabular problem types:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For image classification:
image/png
,image/jpeg
, orimage/*
. The default value isimage/*
. -
For text classification:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For time-series forecasting:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For text generation (LLMs fine-tuning):
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
.
sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The content type of the data from the input source. The following are the allowed content types for different problems:
-
For tabular problem types:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For image classification:
image/png
,image/jpeg
, orimage/*
. The default value isimage/*
. -
For text classification:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For time-series forecasting:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For text generation (LLMs fine-tuning):
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
.
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The content type of the data from the input source. The following are the allowed content types for different problems:
-
For tabular problem types:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For image classification:
image/png
,image/jpeg
, orimage/*
. The default value isimage/*
. -
For text classification:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For time-series forecasting:
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
. -
For text generation (LLMs fine-tuning):
text/csv;header=present
orx-application/vnd.amazon+parquet
. The default value istext/csv;header=present
.
sourcepub fn compression_type(self, input: CompressionType) -> Self
pub fn compression_type(self, input: CompressionType) -> Self
The allowed compression types depend on the input format and problem type. We allow the compression type Gzip
for S3Prefix
inputs on tabular data only. For all other inputs, the compression type should be None
. If no compression type is provided, we default to None
.
sourcepub fn set_compression_type(self, input: Option<CompressionType>) -> Self
pub fn set_compression_type(self, input: Option<CompressionType>) -> Self
The allowed compression types depend on the input format and problem type. We allow the compression type Gzip
for S3Prefix
inputs on tabular data only. For all other inputs, the compression type should be None
. If no compression type is provided, we default to None
.
sourcepub fn get_compression_type(&self) -> &Option<CompressionType>
pub fn get_compression_type(&self) -> &Option<CompressionType>
The allowed compression types depend on the input format and problem type. We allow the compression type Gzip
for S3Prefix
inputs on tabular data only. For all other inputs, the compression type should be None
. If no compression type is provided, we default to None
.
sourcepub fn data_source(self, input: AutoMlDataSource) -> Self
pub fn data_source(self, input: AutoMlDataSource) -> Self
The data source for an AutoML channel (Required).
sourcepub fn set_data_source(self, input: Option<AutoMlDataSource>) -> Self
pub fn set_data_source(self, input: Option<AutoMlDataSource>) -> Self
The data source for an AutoML channel (Required).
sourcepub fn get_data_source(&self) -> &Option<AutoMlDataSource>
pub fn get_data_source(&self) -> &Option<AutoMlDataSource>
The data source for an AutoML channel (Required).
sourcepub fn build(self) -> AutoMlJobChannel
pub fn build(self) -> AutoMlJobChannel
Consumes the builder and constructs a AutoMlJobChannel
.
Trait Implementations§
source§impl Clone for AutoMlJobChannelBuilder
impl Clone for AutoMlJobChannelBuilder
source§fn clone(&self) -> AutoMlJobChannelBuilder
fn clone(&self) -> AutoMlJobChannelBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoMlJobChannelBuilder
impl Debug for AutoMlJobChannelBuilder
source§impl Default for AutoMlJobChannelBuilder
impl Default for AutoMlJobChannelBuilder
source§fn default() -> AutoMlJobChannelBuilder
fn default() -> AutoMlJobChannelBuilder
source§impl PartialEq for AutoMlJobChannelBuilder
impl PartialEq for AutoMlJobChannelBuilder
source§fn eq(&self, other: &AutoMlJobChannelBuilder) -> bool
fn eq(&self, other: &AutoMlJobChannelBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.