public class JointMultiDataSetIterator extends Object implements MultiDataSetIterator
| Modifier and Type | Field and Description |
|---|---|
protected Collection<DataSetIterator> |
iterators |
protected int |
outcome |
protected MultiDataSetPreProcessor |
preProcessor |
| Constructor and Description |
|---|
JointMultiDataSetIterator(DataSetIterator... iterators) |
JointMultiDataSetIterator(int outcome,
DataSetIterator... iterators) |
| 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()
Returns
true if the iteration has more elements. |
MultiDataSet |
next()
Returns the next element in the iteration.
|
MultiDataSet |
next(int num)
Fetch the next 'num' examples.
|
void |
remove()
PLEASE NOTE: This method is NOT implemented
|
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, waitforEachRemainingprotected MultiDataSetPreProcessor preProcessor
protected Collection<DataSetIterator> iterators
protected int outcome
public JointMultiDataSetIterator(DataSetIterator... iterators)
iterators - Underlying iterators to wrappublic JointMultiDataSetIterator(int outcome,
DataSetIterator... iterators)
outcome - Index to get the label from. If < 0, labels from all iterators will be used to create the
final MultiDataSetiterators - Underlying iterators to wrappublic MultiDataSet next(int num)
next in interface MultiDataSetIteratornum - Number of examples to fetchpublic void setPreProcessor(MultiDataSetPreProcessor preProcessor)
setPreProcessor in interface MultiDataSetIteratorpreProcessor - MultiDataSetPreProcessor. May be null.public MultiDataSetPreProcessor getPreProcessor()
MultiDataSetPreProcessor, if one has previously been set.
Returns null if no preprocessor has been setgetPreProcessor in interface MultiDataSetIteratorpublic boolean resetSupported()
resetSupported in interface MultiDataSetIteratorpublic boolean asyncSupported()
asyncSupported in interface MultiDataSetIteratorpublic void reset()
reset in interface MultiDataSetIteratorpublic boolean hasNext()
true if the iteration has more elements.
(In other words, returns true if next(int) would
return an element rather than throwing an exception.)hasNext in interface Iterator<MultiDataSet>true if the iteration has more elementspublic MultiDataSet next()
next in interface Iterator<MultiDataSet>public void remove()
remove in interface Iterator<MultiDataSet>UnsupportedOperationException - if the remove
operation is not supported by this iteratorIllegalStateException - if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
methodCopyright © 2021. All rights reserved.