public class BenchmarkDataSetIterator extends Object implements org.nd4j.linalg.dataset.api.iterator.DataSetIterator
| Constructor and Description |
|---|
BenchmarkDataSetIterator(org.nd4j.linalg.dataset.DataSet example,
int totalIterations) |
BenchmarkDataSetIterator(int[] featuresShape,
int numLabels,
int totalIterations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported() |
int |
batch() |
int |
cursor() |
List<String> |
getLabels() |
org.nd4j.linalg.dataset.api.DataSetPreProcessor |
getPreProcessor() |
boolean |
hasNext()
Returns
true if the iteration has more elements. |
int |
inputColumns() |
org.nd4j.linalg.dataset.DataSet |
next()
Returns the next element in the iteration.
|
org.nd4j.linalg.dataset.DataSet |
next(int i) |
int |
numExamples() |
void |
remove()
Removes from the underlying collection the last element returned
by this iterator (optional operation).
|
void |
reset() |
boolean |
resetSupported() |
void |
setPreProcessor(org.nd4j.linalg.dataset.api.DataSetPreProcessor dataSetPreProcessor) |
int |
totalExamples() |
int |
totalOutcomes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic BenchmarkDataSetIterator(int[] featuresShape,
int numLabels,
int totalIterations)
public BenchmarkDataSetIterator(org.nd4j.linalg.dataset.DataSet example,
int totalIterations)
public org.nd4j.linalg.dataset.DataSet next(int i)
next in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic int totalExamples()
totalExamples in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic int inputColumns()
inputColumns in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic int totalOutcomes()
totalOutcomes in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic boolean resetSupported()
resetSupported in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic boolean asyncSupported()
asyncSupported in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic void reset()
reset in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic int batch()
batch in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic int cursor()
cursor in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic int numExamples()
numExamples in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic void setPreProcessor(org.nd4j.linalg.dataset.api.DataSetPreProcessor dataSetPreProcessor)
setPreProcessor in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic org.nd4j.linalg.dataset.api.DataSetPreProcessor getPreProcessor()
getPreProcessor in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic List<String> getLabels()
getLabels in interface org.nd4j.linalg.dataset.api.iterator.DataSetIteratorpublic 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.)public org.nd4j.linalg.dataset.DataSet next()
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<org.nd4j.linalg.dataset.DataSet>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 © 2017. All rights reserved.