public class ScrollableMultiDataSetIterator extends Object implements MultiDataSetIterator
Modifier and Type | Field and Description |
---|---|
protected MultiDataSetIterator |
backedIterator |
protected AtomicLong |
counter |
protected MultiDataSet |
firstMultiTrain |
protected DataSet |
firstTrain |
protected AtomicBoolean |
resetPending |
Constructor and Description |
---|
ScrollableMultiDataSetIterator(int num,
MultiDataSetIterator backedIterator,
AtomicLong counter,
MultiDataSet firstTrain,
int[] itemsPerPart) |
Modifier and Type | Method and Description |
---|---|
boolean |
asyncSupported()
Does this MultiDataSetIterator support asynchronous prefetching of multiple MultiDataSet objects?
|
MultiDataSetPreProcessor |
getPreProcessor()
Get the
MultiDataSetPreProcessor , if one has previously been set. |
boolean |
hasNext() |
MultiDataSet |
next() |
MultiDataSet |
next(int i)
Fetch the next 'num' examples.
|
void |
remove() |
void |
reset()
Resets the iterator back to the beginning
|
boolean |
resetSupported()
Is resetting supported by this DataSetIterator?
|
void |
setPreProcessor(MultiDataSetPreProcessor dataSetPreProcessor)
Set the preprocessor to be applied to each MultiDataSet, before each MultiDataSet is returned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected MultiDataSetIterator backedIterator
protected AtomicLong counter
protected AtomicBoolean resetPending
protected DataSet firstTrain
protected MultiDataSet firstMultiTrain
public ScrollableMultiDataSetIterator(int num, MultiDataSetIterator backedIterator, AtomicLong counter, MultiDataSet firstTrain, int[] itemsPerPart)
public boolean resetSupported()
MultiDataSetIterator
resetSupported
in interface MultiDataSetIterator
public boolean asyncSupported()
MultiDataSetIterator
asyncSupported
in interface MultiDataSetIterator
public void reset()
MultiDataSetIterator
reset
in interface MultiDataSetIterator
public void setPreProcessor(MultiDataSetPreProcessor dataSetPreProcessor)
MultiDataSetIterator
setPreProcessor
in interface MultiDataSetIterator
dataSetPreProcessor
- MultiDataSetPreProcessor. May be null.public MultiDataSetPreProcessor getPreProcessor()
MultiDataSetIterator
MultiDataSetPreProcessor
, if one has previously been set.
Returns null if no preprocessor has been setgetPreProcessor
in interface MultiDataSetIterator
public boolean hasNext()
hasNext
in interface Iterator<MultiDataSet>
public MultiDataSet next()
next
in interface Iterator<MultiDataSet>
public void remove()
remove
in interface Iterator<MultiDataSet>
public MultiDataSet next(int i)
MultiDataSetIterator
next
in interface MultiDataSetIterator
i
- Number of examples to fetchCopyright © 2020. All rights reserved.