public class ExistingDataSetIterator extends Object implements DataSetIterator
Iterable<DataSet> and Iterator<DataSet>.
Note that when using Iterator<DataSet>, resetting of the DataSetIterator is not supported| Constructor and Description |
|---|
ExistingDataSetIterator(Iterable<DataSet> iterable)
Wraps the specified iterable.
|
ExistingDataSetIterator(Iterable<DataSet> iterable,
int totalExamples,
int numFeatures,
int numLabels) |
ExistingDataSetIterator(Iterable<DataSet> iterable,
List<String> labels)
Wraps the specified iterable.
|
ExistingDataSetIterator(Iterator<DataSet> iterator)
Note that when using this constructor, resetting is not supported
|
ExistingDataSetIterator(Iterator<DataSet> iterator,
List<String> labels)
Note that when using this constructor, resetting is not supported
|
| 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 ExistingDataSetIterator(@NonNull
Iterator<DataSet> iterator)
iterator - Iterator to wrappublic ExistingDataSetIterator(@NonNull
Iterator<DataSet> iterator,
@NonNull
List<String> labels)
iterator - Iterator to wraplabels - String labels. May be null.public ExistingDataSetIterator(@NonNull
Iterable<DataSet> iterable)
iterable - Iterable to wrappublic ExistingDataSetIterator(@NonNull
Iterable<DataSet> iterable,
@NonNull
List<String> labels)
iterable - Iterable to wraplabels - Labels list. May be nullpublic DataSet next(int num)
next in interface DataSetIteratorpublic 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 DataSetIteratorCopyright © 2019. All rights reserved.