Class ScrollableDataSetIterator
- java.lang.Object
-
- org.deeplearning4j.datasets.iterator.ScrollableDataSetIterator
-
- All Implemented Interfaces:
Serializable,Iterator<DataSet>,DataSetIterator
public class ScrollableDataSetIterator extends Object implements DataSetIterator
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DataSetIteratorbackedIteratorprotected AtomicLongcounterprotected MultiDataSetfirstMultiTrainprotected DataSetfirstTrainprotected AtomicBooleanresetPending
-
Constructor Summary
Constructors Constructor Description ScrollableDataSetIterator(int num, DataSetIterator backedIterator, AtomicLong counter, AtomicBoolean resetPending, DataSet firstTrain, double ratio, int totalExamples)ScrollableDataSetIterator(int num, DataSetIterator backedIterator, AtomicLong counter, AtomicBoolean resetPending, DataSet firstTrain, int[] itemsPerPart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasyncSupported()intbatch()List<String>getLabels()DataSetPreProcessorgetPreProcessor()booleanhasNext()intinputColumns()DataSetnext()DataSetnext(int i)voidremove()voidreset()booleanresetSupported()voidsetPreProcessor(DataSetPreProcessor dataSetPreProcessor)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
-
-
-
-
Field Detail
-
backedIterator
protected DataSetIterator backedIterator
-
counter
protected AtomicLong counter
-
resetPending
protected AtomicBoolean resetPending
-
firstTrain
protected DataSet firstTrain
-
firstMultiTrain
protected MultiDataSet firstMultiTrain
-
-
Constructor Detail
-
ScrollableDataSetIterator
public ScrollableDataSetIterator(int num, DataSetIterator backedIterator, AtomicLong counter, AtomicBoolean resetPending, DataSet firstTrain, double ratio, int totalExamples)
-
ScrollableDataSetIterator
public ScrollableDataSetIterator(int num, DataSetIterator backedIterator, AtomicLong counter, AtomicBoolean resetPending, DataSet firstTrain, int[] itemsPerPart)
-
-
Method Detail
-
next
public DataSet next(int i)
- Specified by:
nextin interfaceDataSetIterator
-
getLabels
public List<String> getLabels()
- Specified by:
getLabelsin 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 dataSetPreProcessor)
- Specified by:
setPreProcessorin interfaceDataSetIterator
-
getPreProcessor
public DataSetPreProcessor getPreProcessor()
- Specified by:
getPreProcessorin interfaceDataSetIterator
-
-