@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
|
List<String> |
getLabels()
Deprecated.
Get dataset iterator class labels, if any.
|
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
|
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 |
totalOutcomes()
Deprecated.
The number of labels for the dataset
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public MultipleEpochsIterator(int numPasses, DataSetIterator iter)
public DataSet next(int num)
next
in interface DataSetIterator
num
- the number of examplespublic int inputColumns()
inputColumns
in interface DataSetIterator
public int totalOutcomes()
totalOutcomes
in interface DataSetIterator
public boolean resetSupported()
DataSetIterator
resetSupported
in interface DataSetIterator
public boolean asyncSupported()
DataSetIterator
asyncSupported
in interface DataSetIterator
public void reset()
reset
in interface DataSetIterator
public int batch()
batch
in interface DataSetIterator
public void setPreProcessor(DataSetPreProcessor preProcessor)
setPreProcessor
in interface DataSetIterator
preProcessor
- a pre processor to setpublic DataSetPreProcessor getPreProcessor()
DataSetIterator
getPreProcessor
in interface DataSetIterator
public List<String> getLabels()
DataSetIterator
getLabels
in interface DataSetIterator
public 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 © 2020. All rights reserved.