NAME
AI::MXNet::Gluon::Data::Set
|
DESCRIPTION
Abstract dataset class. All datasets should have this interface.
Subclasses need to override method at( $i ), which returns the i-th
element, method len() which returns the total number elements.
AI::MXNet::NDArray can be directly used as a dataset.
|
NAME
AI::MXNet::Gluon::Data::ArrayDataset
|
DESCRIPTION
A dataset with a data array and a label array.
The i-th sample is `(data[i], label[i])`.
Parameters
----------
data : AI::MXNet::NDArray or PDL
The data array.
label : AI::MXNet::NDArray or PDL
The label array.
|
NAME
AI::MXNet::Gluon::Data::RecordFileSet
|
DESCRIPTION
A dataset wrapping over a RecordIO (.rec) file.
Each sample is a string representing the raw content of an record.
Parameters
----------
filename : str
Path to rec file.
|