public class SingletonMultiDataSetIterator extends Object implements MultiDataSetIterator
| Constructor and Description |
|---|
SingletonMultiDataSetIterator(MultiDataSet multiDataSet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported()
Does this MultiDataSetIterator support asynchronous prefetching of multiple MultiDataSet objects?
Most MultiDataSetIterators do, but in some cases it may not make sense to wrap this iterator in an
iterator that does asynchronous prefetching.
|
MultiDataSetPreProcessor |
getPreProcessor()
Get the
MultiDataSetPreProcessor, if one has previously been set. |
boolean |
hasNext() |
MultiDataSet |
next() |
MultiDataSet |
next(int num)
Fetch the next 'num' examples.
|
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(MultiDataSetPreProcessor preProcessor)
Set the preprocessor to be applied to each MultiDataSet, before each MultiDataSet is returned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic SingletonMultiDataSetIterator(MultiDataSet multiDataSet)
multiDataSet - The underlying MultiDataSet to returnpublic MultiDataSet next(int num)
MultiDataSetIteratornext in interface MultiDataSetIteratornum - Number of examples to fetchpublic void setPreProcessor(MultiDataSetPreProcessor preProcessor)
MultiDataSetIteratorsetPreProcessor in interface MultiDataSetIteratorpreProcessor - MultiDataSetPreProcessor. May be null.public MultiDataSetPreProcessor getPreProcessor()
MultiDataSetIteratorMultiDataSetPreProcessor, if one has previously been set.
Returns null if no preprocessor has been setgetPreProcessor in interface MultiDataSetIteratorpublic boolean resetSupported()
MultiDataSetIteratorresetSupported in interface MultiDataSetIteratorpublic boolean asyncSupported()
MultiDataSetIteratorasyncSupported in interface MultiDataSetIteratorpublic void reset()
MultiDataSetIteratorreset in interface MultiDataSetIteratorpublic boolean hasNext()
hasNext in interface Iterator<MultiDataSet>public MultiDataSet next()
next in interface Iterator<MultiDataSet>public void remove()
remove in interface Iterator<MultiDataSet>Copyright © 2021. All rights reserved.