public interface DataSetIterator extends Iterator<DataSet>, Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
asyncSupported()
Does this DataSetIterator support asynchronous prefetching of multiple DataSet objects?
Most DataSetIterators do, but in some cases it may not make sense to wrap this iterator in an
iterator that does asynchronous prefetching.
|
int |
batch()
Batch size
|
List<String> |
getLabels()
Get dataset iterator class labels, if any.
|
DataSetPreProcessor |
getPreProcessor()
Returns preprocessors, if defined
|
int |
inputColumns()
Input columns for the dataset
|
DataSet |
next(int num)
Like the standard next method but allows a
customizable number of examples returned
|
void |
reset()
Resets the iterator back to the beginning
|
boolean |
resetSupported()
Is resetting supported by this DataSetIterator? Many DataSetIterators do support resetting,
but some don't
|
void |
setPreProcessor(DataSetPreProcessor preProcessor)
Set a pre processor
|
int |
totalOutcomes()
The number of labels for the dataset
|
forEachRemaining, hasNext, next, remove
DataSet next(int num)
num
- the number of examplesint inputColumns()
int totalOutcomes()
boolean resetSupported()
boolean asyncSupported()
void reset()
int batch()
void setPreProcessor(DataSetPreProcessor preProcessor)
preProcessor
- a pre processor to setDataSetPreProcessor getPreProcessor()
Copyright © 2020. All rights reserved.