public class MiniBatchFileDataSetIterator extends Object implements DataSetIterator
| Constructor and Description |
|---|
MiniBatchFileDataSetIterator(DataSet baseData,
int batchSize) |
MiniBatchFileDataSetIterator(DataSet baseData,
int batchSize,
boolean delete) |
MiniBatchFileDataSetIterator(DataSet baseData,
int batchSize,
boolean delete,
File rootDir) |
| Modifier and Type | Method and Description |
|---|---|
int |
batch()
Batch size
|
int |
cursor()
The current cursor if applicable
|
List<String> |
getLabels()
Get dataset iterator record reader labels
|
File |
getRootDir() |
boolean |
hasNext() |
int |
inputColumns()
Input columns for the dataset
|
DataSet |
next() |
DataSet |
next(int num)
Like the standard next method but allows a
customizable number of examples returned
|
int |
numExamples()
Total number of examples in the dataset
|
void |
remove() |
void |
reset()
Resets the iterator back to the beginning
|
void |
setPreProcessor(DataSetPreProcessor preProcessor)
Set a pre processor
|
void |
setRootDir(File rootDir) |
int |
totalExamples()
Total examples in the iterator
|
int |
totalOutcomes()
The number of labels for the dataset
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic MiniBatchFileDataSetIterator(DataSet baseData, int batchSize) throws IOException
baseData - the base datasetbatchSize - the batch size to split byIOExceptionpublic MiniBatchFileDataSetIterator(DataSet baseData, int batchSize, boolean delete, File rootDir) throws IOException
baseData - the base datasetbatchSize - the batch size to split byIOExceptionpublic MiniBatchFileDataSetIterator(DataSet baseData, int batchSize, boolean delete) throws IOException
baseData - the base datasetbatchSize - the batch size to split byIOExceptionpublic DataSet next(int num)
DataSetIteratornext in interface DataSetIteratornum - the number of examplespublic int totalExamples()
DataSetIteratortotalExamples in interface DataSetIteratorpublic int inputColumns()
DataSetIteratorinputColumns in interface DataSetIteratorpublic int totalOutcomes()
DataSetIteratortotalOutcomes in interface DataSetIteratorpublic void reset()
DataSetIteratorreset in interface DataSetIteratorpublic int batch()
DataSetIteratorbatch in interface DataSetIteratorpublic int cursor()
DataSetIteratorcursor in interface DataSetIteratorpublic int numExamples()
DataSetIteratornumExamples in interface DataSetIteratorpublic void setPreProcessor(DataSetPreProcessor preProcessor)
DataSetIteratorsetPreProcessor in interface DataSetIteratorpreProcessor - a pre processor to setpublic List<String> getLabels()
DataSetIteratorgetLabels in interface DataSetIteratorpublic File getRootDir()
public void setRootDir(File rootDir)
Copyright © 2016. All Rights Reserved.