Class EarlyTerminationDataSetIterator
- java.lang.Object
-
- org.deeplearning4j.datasets.iterator.EarlyTerminationDataSetIterator
-
- All Implemented Interfaces:
Serializable,Iterator<DataSet>,DataSetIterator
public class EarlyTerminationDataSetIterator extends Object implements DataSetIterator
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EarlyTerminationDataSetIterator(DataSetIterator 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()intbatch()List<String>getLabels()DataSetPreProcessorgetPreProcessor()booleanhasNext()intinputColumns()DataSetnext()DataSetnext(int num)voidremove()voidreset()booleanresetSupported()voidsetPreProcessor(DataSetPreProcessor preProcessor)inttotalOutcomes()-
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
-
EarlyTerminationDataSetIterator
public EarlyTerminationDataSetIterator(DataSetIterator 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 DataSet next(int num)
- Specified by:
nextin interfaceDataSetIterator
-
inputColumns
public int inputColumns()
- Specified by:
inputColumnsin interfaceDataSetIterator
-
totalOutcomes
public int totalOutcomes()
- Specified by:
totalOutcomesin interfaceDataSetIterator
-
resetSupported
public boolean resetSupported()
- Specified by:
resetSupportedin interfaceDataSetIterator
-
asyncSupported
public boolean asyncSupported()
- Specified by:
asyncSupportedin interfaceDataSetIterator
-
reset
public void reset()
- Specified by:
resetin interfaceDataSetIterator
-
batch
public int batch()
- Specified by:
batchin interfaceDataSetIterator
-
setPreProcessor
public void setPreProcessor(DataSetPreProcessor preProcessor)
- Specified by:
setPreProcessorin interfaceDataSetIterator
-
getPreProcessor
public DataSetPreProcessor getPreProcessor()
- Specified by:
getPreProcessorin interfaceDataSetIterator
-
getLabels
public List<String> getLabels()
- Specified by:
getLabelsin interfaceDataSetIterator
-
-