public class ListDataSetIterator<T extends DataSet> extends Object implements DataSetIterator
| Constructor and Description |
|---|
ListDataSetIterator(Collection<T> coll)
Initializes with a batch of 5
|
ListDataSetIterator(Collection<T> coll,
int batch) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported() |
int |
batch() |
List<String> |
getLabels() |
boolean |
hasNext() |
int |
inputColumns() |
DataSet |
next() |
DataSet |
next(int num) |
void |
remove() |
void |
reset() |
boolean |
resetSupported() |
void |
setPreProcessor(DataSetPreProcessor preProcessor) |
int |
totalOutcomes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreProcessorforEachRemainingpublic ListDataSetIterator(Collection<T> coll, int batch)
coll - Collection of datasets with 1 example eachbatch - Batch sizepublic ListDataSetIterator(Collection<T> coll)
coll - the collection to iterate overpublic int inputColumns()
inputColumns in interface DataSetIteratorpublic int totalOutcomes()
totalOutcomes in interface DataSetIteratorpublic boolean resetSupported()
resetSupported in interface DataSetIteratorpublic boolean asyncSupported()
asyncSupported in interface DataSetIteratorpublic void reset()
reset in interface DataSetIteratorpublic int batch()
batch in interface DataSetIteratorpublic void setPreProcessor(DataSetPreProcessor preProcessor)
setPreProcessor in interface DataSetIteratorpublic List<String> getLabels()
getLabels in interface DataSetIteratorpublic DataSet next(int num)
next in interface DataSetIteratorCopyright © 2021. All rights reserved.