public class BenchmarkMultiDataSetIterator extends Object implements MultiDataSetIterator
| Constructor and Description |
|---|
BenchmarkMultiDataSetIterator(int[][] featuresShape,
int[] numLabels,
int totalIterations) |
BenchmarkMultiDataSetIterator(MultiDataSet example,
int totalIterations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported() |
MultiDataSetPreProcessor |
getPreProcessor() |
boolean |
hasNext()
Returns
true if the iteration has more elements. |
MultiDataSet |
next()
Returns the next element in the iteration.
|
MultiDataSet |
next(int i) |
void |
remove()
Removes from the underlying collection the last element returned
by this iterator (optional operation).
|
void |
reset() |
boolean |
resetSupported() |
void |
setPreProcessor(MultiDataSetPreProcessor dataSetPreProcessor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic BenchmarkMultiDataSetIterator(int[][] featuresShape,
int[] numLabels,
int totalIterations)
public BenchmarkMultiDataSetIterator(MultiDataSet example, int totalIterations)
public MultiDataSet next(int i)
next in interface MultiDataSetIteratorpublic boolean resetSupported()
resetSupported in interface MultiDataSetIteratorpublic boolean asyncSupported()
asyncSupported in interface MultiDataSetIteratorpublic void reset()
reset in interface MultiDataSetIteratorpublic void setPreProcessor(MultiDataSetPreProcessor dataSetPreProcessor)
setPreProcessor in interface MultiDataSetIteratorpublic MultiDataSetPreProcessor getPreProcessor()
getPreProcessor in interface MultiDataSetIteratorpublic boolean hasNext()
true if the iteration has more elements.
(In other words, returns true if next(int) would
return an element rather than throwing an exception.)hasNext in interface Iterator<MultiDataSet>true if the iteration has more elementspublic MultiDataSet next()
next in interface Iterator<MultiDataSet>public void remove()
next(int). The behavior of an iterator
is unspecified if the underlying collection is modified while the
iteration is in progress in any way other than by calling this
method.remove in interface Iterator<MultiDataSet>UnsupportedOperationException - if the remove
operation is not supported by this iteratorIllegalStateException - if the next method has not
yet been called, or the remove method has already
been called after the last call to the next
methodCopyright © 2021. All rights reserved.