Channel

class aws_cdk.aws_stepfunctions_tasks.Channel(*, channel_name, data_source, compression_type=None, content_type=None, input_mode=None, record_wrapper_type=None, shuffle_config=None)

Bases: object

__init__(*, channel_name, data_source, compression_type=None, content_type=None, input_mode=None, record_wrapper_type=None, shuffle_config=None)

Describes the training, validation or test dataset and the Amazon S3 location where it is stored.

Parameters
  • channel_name (str) – Name of the channel.

  • data_source (DataSource) – Location of the channel data.

  • compression_type (Optional[CompressionType]) – Compression type if training data is compressed. Default: - None

  • content_type (Optional[str]) – The MIME type of the data. Default: - None

  • input_mode (Optional[InputMode]) – Input mode to use for the data channel in a training job. Default: - None

  • record_wrapper_type (Optional[RecordWrapperType]) – Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don’t need to set this attribute. Default: - None

  • shuffle_config (Optional[ShuffleConfig]) – Shuffle config option for input data in a channel. Default: - None

stability :stability: experimental

Return type

None

Attributes

channel_name

Name of the channel.

stability :stability: experimental

Return type

str

compression_type

Compression type if training data is compressed.

default :default: - None

stability :stability: experimental

Return type

Optional[CompressionType]

content_type

The MIME type of the data.

default :default: - None

stability :stability: experimental

Return type

Optional[str]

data_source

Location of the channel data.

stability :stability: experimental

Return type

DataSource

input_mode

Input mode to use for the data channel in a training job.

default :default: - None

stability :stability: experimental

Return type

Optional[InputMode]

record_wrapper_type

Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format.

In this case, Amazon SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don’t need to set this attribute.

default :default: - None

stability :stability: experimental

Return type

Optional[RecordWrapperType]

shuffle_config

Shuffle config option for input data in a channel.

default :default: - None

stability :stability: experimental

Return type

Optional[ShuffleConfig]