public class MnistDataFetcher
extends org.nd4j.linalg.dataset.api.iterator.fetcher.BaseDataFetcher
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
binarize |
protected static long |
CHECKSUM_TEST_FEATURES |
protected static long |
CHECKSUM_TEST_LABELS |
protected static long |
CHECKSUM_TRAIN_FEATURES |
protected static long |
CHECKSUM_TRAIN_LABELS |
protected static long[] |
CHECKSUMS_TEST |
protected static long[] |
CHECKSUMS_TRAIN |
protected boolean |
firstShuffle |
protected boolean |
fOrder |
protected MnistManager |
man |
static int |
NUM_EXAMPLES |
static int |
NUM_EXAMPLES_TEST |
protected int |
numExamples |
protected boolean |
oneIndexed |
protected int[] |
order |
protected Random |
rng |
protected boolean |
shuffle |
protected boolean |
train |
| Constructor and Description |
|---|
MnistDataFetcher() |
MnistDataFetcher(boolean binarize)
Constructor telling whether to binarize the dataset or not
|
MnistDataFetcher(boolean binarize,
boolean train,
boolean shuffle,
long rngSeed,
int numExamples) |
| Modifier and Type | Method and Description |
|---|---|
void |
fetch(int numExamples) |
org.nd4j.linalg.dataset.DataSet |
next() |
void |
reset() |
public static final int NUM_EXAMPLES
public static final int NUM_EXAMPLES_TEST
protected static final long CHECKSUM_TRAIN_FEATURES
protected static final long CHECKSUM_TRAIN_LABELS
protected static final long CHECKSUM_TEST_FEATURES
protected static final long CHECKSUM_TEST_LABELS
protected static final long[] CHECKSUMS_TRAIN
protected static final long[] CHECKSUMS_TEST
protected transient MnistManager man
protected boolean binarize
protected boolean train
protected int[] order
protected Random rng
protected boolean shuffle
protected boolean oneIndexed
protected boolean fOrder
protected boolean firstShuffle
protected final int numExamples
public MnistDataFetcher(boolean binarize)
throws IOException
binarize - whether to binarize the dataset or notIOExceptionpublic MnistDataFetcher(boolean binarize,
boolean train,
boolean shuffle,
long rngSeed,
int numExamples)
throws IOException
IOExceptionpublic MnistDataFetcher()
throws IOException
IOExceptionpublic void fetch(int numExamples)
public void reset()
reset in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherreset in class org.nd4j.linalg.dataset.api.iterator.fetcher.BaseDataFetcherpublic org.nd4j.linalg.dataset.DataSet next()
next in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetchernext in class org.nd4j.linalg.dataset.api.iterator.fetcher.BaseDataFetcherCopyright © 2019. All rights reserved.