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) |
Modifier and Type | Method and Description |
---|---|
void |
fetch(int numExamples)
Fetches the next dataset.
|
DataSet |
next()
Returns the next data set
|
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
IOException
public MnistDataFetcher() throws IOException
IOException
public void fetch(int numExamples)
DataSetFetcher
DataSetFetcher.next()
just returns the last data set fetchnumExamples
- the number of examples to fetchpublic void reset()
DataSetFetcher
reset
in interface DataSetFetcher
reset
in class BaseDataFetcher
public DataSet next()
DataSetFetcher
next
in interface DataSetFetcher
next
in class BaseDataFetcher
Copyright © 2014. All Rights Reserved.