Channel class

A channel is a named input source that training algorithms can consume.

Constructors

Channel({required String channelName, required DataSource dataSource, CompressionType? compressionType, String? contentType, TrainingInputMode? inputMode, RecordWrapper? recordWrapperType, ShuffleConfig? shuffleConfig})
Channel.fromJson(Map<String, dynamic> json)
factory

Properties

channelName String
The name of the channel.
final
compressionType CompressionType?
If training data is compressed, the compression type. The default value is None. CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.
final
contentType String?
The MIME type of the data.
final
dataSource DataSource
The location of the channel data.
final
hashCode int
The hash code for this object.
no setterinherited
inputMode TrainingInputMode?
(Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode, Amazon SageMaker uses the value set for TrainingInputMode. Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.
final
recordWrapperType RecordWrapper?
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. For more information, see Create a Dataset Using RecordIO.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shuffleConfig ShuffleConfig?
A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType, this shuffles the results of the S3 key prefix matches. If you use ManifestFile, the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile, the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited