@Deprecated public class MultipleEpochsIterator extends Object implements DataSetIterator
| Constructor and Description |
|---|
MultipleEpochsIterator(int numPasses,
DataSetIterator iter)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported()
Deprecated.
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()
Deprecated.
Batch size
|
int |
cursor()
Deprecated.
The current cursor if applicable
|
List<String> |
getLabels()
Deprecated.
Get dataset iterator record reader labels
|
DataSetPreProcessor |
getPreProcessor()
Deprecated.
Returns preprocessors, if defined
|
boolean |
hasNext()
Deprecated.
Returns
true if the iteration has more elements. |
int |
inputColumns()
Deprecated.
Input columns for the dataset
|
DataSet |
next()
Deprecated.
Returns the next element in the iteration.
|
DataSet |
next(int num)
Deprecated.
Like the standard next method but allows a
customizable number of examples returned
|
int |
numExamples()
Deprecated.
Total number of examples in the dataset
|
void |
remove()
Deprecated.
Removes from the underlying collection the last element returned
by this iterator (optional operation).
|
void |
reset()
Deprecated.
Resets the iterator back to the beginning
|
boolean |
resetSupported()
Deprecated.
Is resetting supported by this DataSetIterator? Many DataSetIterators do support resetting,
but some don't
|
void |
setPreProcessor(DataSetPreProcessor preProcessor)
Deprecated.
Set a pre processor
|
int |
totalExamples()
Deprecated.
Total examples in the iterator
|
int |
totalOutcomes()
Deprecated.
The number of labels for the dataset
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic MultipleEpochsIterator(int numPasses,
DataSetIterator iter)
public DataSet next(int num)
next in interface DataSetIteratornum - the number of examplespublic int totalExamples()
totalExamples in interface DataSetIteratorpublic int inputColumns()
inputColumns in interface DataSetIteratorpublic int totalOutcomes()
totalOutcomes in interface DataSetIteratorpublic boolean resetSupported()
DataSetIteratorresetSupported in interface DataSetIteratorpublic boolean asyncSupported()
DataSetIteratorasyncSupported in interface DataSetIteratorpublic void reset()
reset in interface DataSetIteratorpublic int batch()
batch in interface DataSetIteratorpublic int cursor()
cursor in interface DataSetIteratorpublic int numExamples()
numExamples in interface DataSetIteratorpublic void setPreProcessor(DataSetPreProcessor preProcessor)
setPreProcessor in interface DataSetIteratorpreProcessor - a pre processor to setpublic DataSetPreProcessor getPreProcessor()
DataSetIteratorgetPreProcessor in interface DataSetIteratorpublic List<String> getLabels()
DataSetIteratorgetLabels in interface 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 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<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 © 2018. All rights reserved.