public class TestMultiDataSetIterator extends Object implements MultiDataSetIterator
Constructor and Description |
---|
TestMultiDataSetIterator(int batch,
MultiDataSet... dataset)
Makes an iterator from the given datasets.
|
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.
|
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, wait
forEachRemaining
public TestMultiDataSetIterator(int batch, MultiDataSet... dataset)
public MultiDataSet next(int num)
MultiDataSetIterator
next
in interface MultiDataSetIterator
num
- Number of examples to fetchpublic void setPreProcessor(MultiDataSetPreProcessor preProcessor)
MultiDataSetIterator
setPreProcessor
in interface MultiDataSetIterator
preProcessor
- MultiDataSetPreProcessor. May be null.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 boolean hasNext()
hasNext
in interface Iterator<MultiDataSet>
public MultiDataSet next()
next
in interface Iterator<MultiDataSet>
public void remove()
remove
in interface Iterator<MultiDataSet>
Copyright © 2016. All Rights Reserved.