Table Of Contents
Table Of Contents

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.

__init__(*args)[source]

Initialize self. See help(type(self)) for accurate signature.

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.