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