mxnet.gluon.data.ArrayDataset¶
-
class
mxnet.gluon.data.
ArrayDataset
(*args)[source]¶ A dataset that combines multiple dataset-like objects, e.g. Datasets, lists, arrays, etc.
The i-th sample is defined as (x1[i], x2[i], …).
- Parameters
*args (one or more dataset-like objects) – The data arrays.
Methods
__init__
(*args)Initialize self.
transform
(fn[, lazy])Returns a new dataset with each sample transformed by the transformer function fn.
transform_first
(fn[, lazy])Returns a new dataset with the first element of each sample transformed by the transformer function fn.