@Deprecated public class MultipleEpochsIterator extends Object implements DataSetIterator
| Modifier and Type | Field and Description |
|---|---|
protected int |
batch
Deprecated.
|
protected List<DataSet> |
batchedDS
Deprecated.
|
protected DataSet |
ds
Deprecated.
|
protected int |
epochs
Deprecated.
|
protected DataSetIterator |
iter
Deprecated.
|
protected AtomicLong |
iterationsCounter
Deprecated.
|
protected int |
lastBatch
Deprecated.
|
protected static org.slf4j.Logger |
log
Deprecated.
|
protected boolean |
newEpoch
Deprecated.
|
protected int |
numEpochs
Deprecated.
|
protected DataSetPreProcessor |
preProcessor
Deprecated.
|
protected long |
totalIterations
Deprecated.
|
| Constructor and Description |
|---|
MultipleEpochsIterator(DataSetIterator iter,
int queueSize,
long totalIterations)
Deprecated.
|
MultipleEpochsIterator(DataSetIterator iter,
long totalIterations)
Deprecated.
|
MultipleEpochsIterator(int numEpochs,
DataSet ds)
Deprecated.
|
MultipleEpochsIterator(int numEpochs,
DataSetIterator iter)
Deprecated.
|
MultipleEpochsIterator(int numEpochs,
DataSetIterator iter,
int queueSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported()
Deprecated.
|
int |
batch()
Deprecated.
Batch size
|
List<String> |
getLabels()
Deprecated.
|
boolean |
hasNext()
Deprecated.
Returns
true if the iteration has more elements. |
int |
inputColumns()
Deprecated.
Input columns for the dataset
|
DataSet |
next()
Deprecated.
|
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.
|
void |
setPreProcessor(DataSetPreProcessor preProcessor)
Deprecated.
|
int |
totalOutcomes()
Deprecated.
The number of labels for the dataset
|
void |
trackEpochs()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreProcessorforEachRemainingprotected int epochs
protected int numEpochs
protected int batch
protected int lastBatch
protected DataSetIterator iter
protected DataSet ds
protected static final org.slf4j.Logger log
protected DataSetPreProcessor preProcessor
protected boolean newEpoch
protected AtomicLong iterationsCounter
protected long totalIterations
@Deprecated public MultipleEpochsIterator(int numEpochs, DataSetIterator iter)
@Deprecated public MultipleEpochsIterator(int numEpochs, DataSetIterator iter, int queueSize)
@Deprecated public MultipleEpochsIterator(DataSetIterator iter, int queueSize, long totalIterations)
@Deprecated public MultipleEpochsIterator(DataSetIterator iter, long totalIterations)
@Deprecated public MultipleEpochsIterator(int numEpochs, DataSet ds)
public DataSet next(int num)
next in interface DataSetIteratornum - the number of examplespublic void trackEpochs()
public 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 List<String> getLabels()
getLabels 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 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 © 2021. All rights reserved.