mxnet.io¶
Data iterators for common data formats and utility functions.
Iterators¶
|
Returns an iterator for |
|
b”Returns the CSV file iterator.nnIn this function, the data_shape parameter is used to set the shape of each line of the input data.nIf a row in an input file is 1,2,3,4,5,6` and data_shape is (3,2), that rownwill be reshaped, yielding the array [[1,2],[3,4],[5,6]] of shape (3,2).nnBy default, the CSVIter has round_batch parameter set to |
|
b”Returns the LibSVM iterator which returns data with csrnstorage type. |
|
b’Iterating on the MNIST dataset.nnOne can download the dataset from http://yann.lecun.com/exdb/mnist/nnnnDefined in src/io/iter_mnist.cc:L265’ |
|
b’Create iterator for image detection dataset packed in recordio.’ |
|
b’Iterates on image RecordIO filesnnReads batches of images from .rec RecordIO files. |
|
b’Iterating on image RecordIO filesnn.. |
|
b’Iterating on image RecordIO filesnnThis iterator is identical to |
|
b’Iterating on image RecordIO filesnn.. |
Helper classes and functions¶
|
A data batch. |
DataDesc is used to store name, shape, type and layout information of the data or the label. |
|
|
The base class for an MXNet data iterator. |
|
A python wrapper a C++ data iterator. |
|
Performs pre-fetch for other data iterators. |
|
Resize a data iterator to a given number of batches. |