public class Cifar10DataSetIterator extends RecordReaderDataSetIterator
RecordReaderDataSetIterator.Builder| Modifier and Type | Field and Description |
|---|---|
protected org.nd4j.linalg.dataset.api.DataSetPreProcessor |
preProcessor |
batchNum, batchSize, converter, labelIndex, labelIndexTo, last, maxNumBatches, numPossibleLabels, recordReader, regression, sequenceIter, useCurrent| Constructor and Description |
|---|
Cifar10DataSetIterator(int batchSize)
Create an iterator for the training set, with random iteration order (RNG seed fixed to 123)
|
Cifar10DataSetIterator(int batchSize,
DataSetType set)
* Create an iterator for the training or test set, with random iteration order (RNG seed fixed to 123)
|
Cifar10DataSetIterator(int batchSize,
int[] imgDim,
DataSetType set)
Get the Tiny ImageNet iterator with specified train/test set, with random iteration order (RNG seed fixed to 123)
|
Cifar10DataSetIterator(int batchSize,
int[] imgDim,
DataSetType set,
ImageTransform imageTransform,
long rngSeed)
Get the Tiny ImageNet iterator with specified train/test set and (optional) custom transform.
|
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getLabels(boolean categories)
Get the labels - either in "categories" (imagenet synsets format, "n01910747" or similar) or human-readable format,
such as "jellyfish"
|
asyncSupported, batch, getLabels, getPreProcessor, getRecordReader, hasNext, inputColumns, isCollectMetaData, loadFromMetaData, loadFromMetaData, next, next, remove, reset, resetSupported, setCollectMetaData, setPreProcessor, totalOutcomesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected org.nd4j.linalg.dataset.api.DataSetPreProcessor preProcessor
public Cifar10DataSetIterator(int batchSize)
batchSize - Minibatch size for the iteratorpublic Cifar10DataSetIterator(int batchSize,
DataSetType set)
batchSize - Minibatch size for the iteratorset - The dataset (train or test)public Cifar10DataSetIterator(int batchSize,
int[] imgDim,
DataSetType set)
batchSize - Size of each patchimgDim - Dimensions of desired output - for example, {64, 64}set - Train, test, or validationpublic Cifar10DataSetIterator(int batchSize,
int[] imgDim,
DataSetType set,
ImageTransform imageTransform,
long rngSeed)
batchSize - Size of each patchimgDim - Dimensions of desired output - for example, {64, 64}set - Train, test, or validationimageTransform - Additional image transform for outputrngSeed - random number generator seed to use when shuffling examplespublic static List<String> getLabels(boolean categories)
categories - If true: return category/synset format; false: return "human readable" label formatCopyright © 2021. All rights reserved.