Class BaseDatasetIterator
- java.lang.Object
-
- org.deeplearning4j.datasets.iterator.BaseDatasetIterator
-
- All Implemented Interfaces:
Serializable,Iterator<DataSet>,DataSetIterator
public class BaseDatasetIterator extends Object implements DataSetIterator
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intbatchprotected BaseDataFetcherfetcherprotected intnumExamplesprotected DataSetPreProcessorpreProcessor
-
Constructor Summary
Constructors Constructor Description BaseDatasetIterator(int batch, int numExamples, BaseDataFetcher fetcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasyncSupported()intbatch()List<String>getLabels()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 org.nd4j.linalg.dataset.api.iterator.DataSetIterator
getPreProcessor
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
batch
protected int batch
-
numExamples
protected int numExamples
-
fetcher
protected BaseDataFetcher fetcher
-
preProcessor
protected DataSetPreProcessor preProcessor
-
-
Constructor Detail
-
BaseDatasetIterator
public BaseDatasetIterator(int batch, int numExamples, BaseDataFetcher fetcher)
-
-
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
-
getLabels
public List<String> getLabels()
- Specified by:
getLabelsin interfaceDataSetIterator
-
-