public class ExistingMiniBatchDataSetIterator extends Object implements DataSetIterator
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PATTERN |
| Constructor and Description |
|---|
ExistingMiniBatchDataSetIterator(@NonNull File rootDir)
Create with the given root directory, using the default filename pattern
DEFAULT_PATTERN |
ExistingMiniBatchDataSetIterator(@NonNull File rootDir,
String pattern) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported()
Does this DataSetIterator support asynchronous prefetching of multiple DataSet objects?
Most DataSetIterators do, but in some cases it may not make sense to wrap this iterator in an
iterator that does asynchronous prefetching.
|
int |
batch()
Batch size
|
List<String> |
getLabels()
Get dataset iterator class labels, if any.
|
DataSetPreProcessor |
getPreProcessor()
Returns preprocessors, if defined
|
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
|
void |
remove() |
void |
reset()
Resets the iterator back to the beginning
|
boolean |
resetSupported()
Is resetting supported by this DataSetIterator? Many DataSetIterators do support resetting,
but some don't
|
void |
setPreProcessor(DataSetPreProcessor preProcessor)
Set a pre processor
|
int |
totalOutcomes()
The number of labels for the dataset
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static final String DEFAULT_PATTERN
public ExistingMiniBatchDataSetIterator(@NonNull
@NonNull File rootDir)
DEFAULT_PATTERNrootDir - the root directory to usepublic DataSet next(int num)
DataSetIteratornext in interface DataSetIteratornum - the number of examplespublic int inputColumns()
DataSetIteratorinputColumns in interface DataSetIteratorpublic int totalOutcomes()
DataSetIteratortotalOutcomes in interface DataSetIteratorpublic boolean resetSupported()
DataSetIteratorresetSupported in interface DataSetIteratorpublic boolean asyncSupported()
DataSetIteratorasyncSupported in interface DataSetIteratorpublic void reset()
DataSetIteratorreset in interface DataSetIteratorpublic int batch()
DataSetIteratorbatch in interface DataSetIteratorpublic void setPreProcessor(DataSetPreProcessor preProcessor)
DataSetIteratorsetPreProcessor in interface DataSetIteratorpreProcessor - a pre processor to setpublic DataSetPreProcessor getPreProcessor()
DataSetIteratorgetPreProcessor in interface DataSetIteratorpublic List<String> getLabels()
DataSetIteratorgetLabels in interface DataSetIteratorCopyright © 2021. All rights reserved.