public class EarlyTerminationDataSetIterator extends Object implements DataSetIterator
| Constructor and Description |
|---|
EarlyTerminationDataSetIterator(DataSetIterator underlyingIterator,
int terminationPoint)
Constructor takes the iterator to wrap and the number of minibatches after which the call to hasNext()
will return false
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported() |
int |
batch() |
List<String> |
getLabels() |
DataSetPreProcessor |
getPreProcessor() |
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, waitforEachRemainingpublic EarlyTerminationDataSetIterator(DataSetIterator underlyingIterator, int terminationPoint)
underlyingIterator, - iterator to wrapterminationPoint, - minibatches after which hasNext() will return falsepublic 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 DataSetPreProcessor getPreProcessor()
getPreProcessor in interface DataSetIteratorpublic List<String> getLabels()
getLabels in interface DataSetIteratorCopyright © 2021. All rights reserved.