public class MnistDataFetcher extends BaseDataFetcher
Modifier and Type | Field and Description |
---|---|
static int |
NUM_EXAMPLES |
curr, cursor, inputColumns, log, numOutcomes, totalExamples
Constructor and Description |
---|
MnistDataFetcher() |
MnistDataFetcher(boolean binarize)
Constructor telling whether to binarize the dataset or not
|
Modifier and Type | Method and Description |
---|---|
void |
fetch(int numExamples)
Fetches the next dataset.
|
org.nd4j.linalg.dataset.DataSet |
next()
Returns the next data applyTransformToDestination
|
void |
reset()
Returns the fetcher back to the beginning of the dataset
|
createInputMatrix, createOutputMatrix, createOutputVector, cursor, hasMore, initializeCurrFromList, inputColumns, totalExamples, totalOutcomes
public static final int NUM_EXAMPLES
public MnistDataFetcher(boolean binarize) throws IOException
binarize
- whether to binarize the dataset or notIOException
public MnistDataFetcher() throws IOException
IOException
public void fetch(int numExamples)
DataSetFetcher
DataSetFetcher.next()
just returns the last data applyTransformToDestination fetchnumExamples
- the number of examples to fetchpublic void reset()
DataSetFetcher
reset
in interface DataSetFetcher
reset
in class BaseDataFetcher
public org.nd4j.linalg.dataset.DataSet next()
DataSetFetcher
next
in interface DataSetFetcher
next
in class BaseDataFetcher
Copyright © 2015. All rights reserved.