Class EarlyTerminationMultiDataSetIterator
- java.lang.Object
-
- org.deeplearning4j.datasets.iterator.EarlyTerminationMultiDataSetIterator
-
- All Implemented Interfaces:
Serializable,Iterator<MultiDataSet>,MultiDataSetIterator
public class EarlyTerminationMultiDataSetIterator extends Object implements MultiDataSetIterator
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EarlyTerminationMultiDataSetIterator(MultiDataSetIterator underlyingIterator, int terminationPoint)Constructor takes the iterator to wrap and the number of minibatches after which the call to hasNext() will return false
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasyncSupported()MultiDataSetPreProcessorgetPreProcessor()booleanhasNext()MultiDataSetnext()MultiDataSetnext(int num)voidremove()voidreset()booleanresetSupported()voidsetPreProcessor(MultiDataSetPreProcessor preProcessor)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
EarlyTerminationMultiDataSetIterator
public EarlyTerminationMultiDataSetIterator(MultiDataSetIterator underlyingIterator, int terminationPoint)
Constructor takes the iterator to wrap and the number of minibatches after which the call to hasNext() will return false- Parameters:
underlyingIterator- , iterator to wrapterminationPoint- , minibatches after which hasNext() will return false
-
-
Method Detail
-
next
public MultiDataSet next(int num)
- Specified by:
nextin interfaceMultiDataSetIterator
-
setPreProcessor
public void setPreProcessor(MultiDataSetPreProcessor preProcessor)
- Specified by:
setPreProcessorin interfaceMultiDataSetIterator
-
getPreProcessor
public MultiDataSetPreProcessor getPreProcessor()
- Specified by:
getPreProcessorin interfaceMultiDataSetIterator
-
resetSupported
public boolean resetSupported()
- Specified by:
resetSupportedin interfaceMultiDataSetIterator
-
asyncSupported
public boolean asyncSupported()
- Specified by:
asyncSupportedin interfaceMultiDataSetIterator
-
reset
public void reset()
- Specified by:
resetin interfaceMultiDataSetIterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<MultiDataSet>
-
next
public MultiDataSet next()
- Specified by:
nextin interfaceIterator<MultiDataSet>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<MultiDataSet>
-
-