public class MnistDataSetIterator
extends org.nd4j.linalg.dataset.api.iterator.BaseDatasetIterator
| Constructor and Description |
|---|
MnistDataSetIterator(int batchSize,
boolean train,
int seed)
Constructor to get the full MNIST data set (either test or train sets) without binarization (i.e., just normalization
into range of 0 to 1), with shuffling based on a random seed.
|
MnistDataSetIterator(int batch,
int numExamples) |
MnistDataSetIterator(int batch,
int numExamples,
boolean binarize)
Get the specified number of examples for the MNIST training data set.
|
MnistDataSetIterator(int batch,
int numExamples,
boolean binarize,
boolean train,
boolean shuffle,
long rngSeed)
Get the specified number of MNIST examples (test or train set), with optional shuffling and binarization.
|
asyncSupported, batch, cursor, getLabels, getPreProcessor, hasNext, inputColumns, next, next, numExamples, remove, reset, resetSupported, setPreProcessor, totalExamples, totalOutcomesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic MnistDataSetIterator(int batch,
int numExamples)
throws IOException
IOExceptionpublic MnistDataSetIterator(int batch,
int numExamples,
boolean binarize)
throws IOException
batch - the batch size of the examplesnumExamples - the overall number of examplesbinarize - whether to binarize mnist or notIOExceptionpublic MnistDataSetIterator(int batchSize,
boolean train,
int seed)
throws IOException
batchSize - train - IOExceptionpublic MnistDataSetIterator(int batch,
int numExamples,
boolean binarize,
boolean train,
boolean shuffle,
long rngSeed)
throws IOException
batch - Size of each patchnumExamples - total number of examples to loadbinarize - whether to binarize the data or not (if false: normalize in range 0 to 1)train - Train vs. test setshuffle - whether to shuffle the examplesrngSeed - random number generator seed to use when shuffling examplesIOExceptionCopyright © 2018. All rights reserved.