Class MultipleEpochsIterator
- java.lang.Object
-
- org.deeplearning4j.datasets.iterator.MultipleEpochsIterator
-
- All Implemented Interfaces:
Serializable,Iterator<DataSet>,DataSetIterator
@Deprecated public class MultipleEpochsIterator extends Object implements DataSetIterator
Deprecated.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intbatchDeprecated.protected List<DataSet>batchedDSDeprecated.protected DataSetdsDeprecated.protected intepochsDeprecated.protected DataSetIteratoriterDeprecated.protected AtomicLongiterationsCounterDeprecated.protected intlastBatchDeprecated.protected static org.slf4j.LoggerlogDeprecated.protected booleannewEpochDeprecated.protected intnumEpochsDeprecated.protected DataSetPreProcessorpreProcessorDeprecated.protected longtotalIterationsDeprecated.
-
Constructor Summary
Constructors Constructor Description MultipleEpochsIterator(int numEpochs, DataSetIterator iter)Deprecated.MultipleEpochsIterator(int numEpochs, DataSetIterator iter, int queueSize)Deprecated.MultipleEpochsIterator(int numEpochs, DataSet ds)Deprecated.MultipleEpochsIterator(DataSetIterator iter, int queueSize, long totalIterations)Deprecated.MultipleEpochsIterator(DataSetIterator iter, long totalIterations)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanasyncSupported()Deprecated.intbatch()Deprecated.Batch sizeList<String>getLabels()Deprecated.booleanhasNext()Deprecated.Returnstrueif the iteration has more elements.intinputColumns()Deprecated.Input columns for the datasetDataSetnext()Deprecated.DataSetnext(int num)Deprecated.Like the standard next method but allows a customizable number of examples returnedvoidremove()Deprecated.Removes from the underlying collection the last element returned by this iterator (optional operation).voidreset()Deprecated.Resets the iterator back to the beginningbooleanresetSupported()Deprecated.voidsetPreProcessor(DataSetPreProcessor preProcessor)Deprecated.inttotalOutcomes()Deprecated.The number of labels for the datasetvoidtrackEpochs()Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nd4j.linalg.dataset.api.iterator.DataSetIterator
getPreProcessor
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
epochs
protected int epochs
Deprecated.
-
numEpochs
protected int numEpochs
Deprecated.
-
batch
protected int batch
Deprecated.
-
lastBatch
protected int lastBatch
Deprecated.
-
iter
protected DataSetIterator iter
Deprecated.
-
ds
protected DataSet ds
Deprecated.
-
log
protected static final org.slf4j.Logger log
Deprecated.
-
preProcessor
protected DataSetPreProcessor preProcessor
Deprecated.
-
newEpoch
protected boolean newEpoch
Deprecated.
-
iterationsCounter
protected AtomicLong iterationsCounter
Deprecated.
-
totalIterations
protected long totalIterations
Deprecated.
-
-
Constructor Detail
-
MultipleEpochsIterator
@Deprecated public MultipleEpochsIterator(int numEpochs, DataSetIterator iter)
Deprecated.
-
MultipleEpochsIterator
@Deprecated public MultipleEpochsIterator(int numEpochs, DataSetIterator iter, int queueSize)
Deprecated.
-
MultipleEpochsIterator
@Deprecated public MultipleEpochsIterator(DataSetIterator iter, int queueSize, long totalIterations)
Deprecated.
-
MultipleEpochsIterator
@Deprecated public MultipleEpochsIterator(DataSetIterator iter, long totalIterations)
Deprecated.
-
MultipleEpochsIterator
@Deprecated public MultipleEpochsIterator(int numEpochs, DataSet ds)
Deprecated.
-
-
Method Detail
-
next
public DataSet next(int num)
Deprecated.Like the standard next method but allows a customizable number of examples returned- Specified by:
nextin interfaceDataSetIterator- Parameters:
num- the number of examples- Returns:
- the next data applyTransformToDestination
-
trackEpochs
public void trackEpochs()
Deprecated.
-
inputColumns
public int inputColumns()
Deprecated.Input columns for the dataset- Specified by:
inputColumnsin interfaceDataSetIterator- Returns:
-
totalOutcomes
public int totalOutcomes()
Deprecated.The number of labels for the dataset- Specified by:
totalOutcomesin interfaceDataSetIterator- Returns:
-
resetSupported
public boolean resetSupported()
Deprecated.- Specified by:
resetSupportedin interfaceDataSetIterator
-
asyncSupported
public boolean asyncSupported()
Deprecated.- Specified by:
asyncSupportedin interfaceDataSetIterator
-
reset
public void reset()
Deprecated.Resets the iterator back to the beginning- Specified by:
resetin interfaceDataSetIterator
-
batch
public int batch()
Deprecated.Batch size- Specified by:
batchin interfaceDataSetIterator- Returns:
-
setPreProcessor
public void setPreProcessor(DataSetPreProcessor preProcessor)
Deprecated.- Specified by:
setPreProcessorin interfaceDataSetIterator
-
getLabels
public List<String> getLabels()
Deprecated.- Specified by:
getLabelsin interfaceDataSetIterator
-
hasNext
public boolean hasNext()
Deprecated.Returnstrueif the iteration has more elements. (In other words, returnstrueifnext(int)would return an element rather than throwing an exception.)
-
remove
public void remove()
Deprecated.Removes from the underlying collection the last element returned by this iterator (optional operation). This method can be called only once per call tonext(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.- Specified by:
removein interfaceIterator<DataSet>- Throws:
UnsupportedOperationException- if theremoveoperation is not supported by this iteratorIllegalStateException- if thenextmethod has not yet been called, or theremovemethod has already been called after the last call to thenextmethod
-
-