public class MultiDataSetLoaderIterator extends Object implements MultiDataSetIterator
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<String> |
iter |
protected org.nd4j.common.loader.Loader<MultiDataSet> |
loader |
protected int[] |
order |
protected List<String> |
paths |
protected int |
position |
protected MultiDataSetPreProcessor |
preProcessor |
protected Random |
rng |
protected org.nd4j.common.loader.SourceFactory |
sourceFactory |
| Constructor and Description |
|---|
MultiDataSetLoaderIterator(Collection<String> paths,
org.nd4j.common.loader.Loader<MultiDataSet> loader,
org.nd4j.common.loader.SourceFactory sourceFactory)
Iterate of the specified collection of strings without randomization
|
MultiDataSetLoaderIterator(Collection<String> paths,
Random rng,
org.nd4j.common.loader.Loader<MultiDataSet> loader,
org.nd4j.common.loader.SourceFactory sourceFactory)
Iterate of the specified collection of strings with optional randomization
|
MultiDataSetLoaderIterator(Iterator<String> paths,
org.nd4j.common.loader.Loader<MultiDataSet> loader,
org.nd4j.common.loader.SourceFactory sourceFactory)
NOTE: When using this constructor (with
Iterator<String>) the MultiDataSetIterator cannot be reset. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported() |
boolean |
hasNext() |
MultiDataSet |
next() |
MultiDataSet |
next(int i) |
void |
remove() |
void |
reset() |
boolean |
resetSupported() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreProcessor, setPreProcessorforEachRemainingprotected final org.nd4j.common.loader.Loader<MultiDataSet> loader
protected final org.nd4j.common.loader.SourceFactory sourceFactory
protected final Random rng
protected final int[] order
protected MultiDataSetPreProcessor preProcessor
protected int position
public MultiDataSetLoaderIterator(Iterator<String> paths, org.nd4j.common.loader.Loader<MultiDataSet> loader, org.nd4j.common.loader.SourceFactory sourceFactory)
Iterator<String>) the MultiDataSetIterator cannot be reset.
Use the other construtor that takes Collection<String>paths - Paths to iterate overloader - Loader to use when loading DataSetssourceFactory - The factory to use to convert the paths into streams via Sourcepublic MultiDataSetLoaderIterator(Collection<String> paths, org.nd4j.common.loader.Loader<MultiDataSet> loader, org.nd4j.common.loader.SourceFactory sourceFactory)
paths - Paths to iterate overloader - Loader to use when loading DataSetssourceFactory - The factory to use to convert the paths into streams via Sourcepublic MultiDataSetLoaderIterator(Collection<String> paths, Random rng, org.nd4j.common.loader.Loader<MultiDataSet> loader, org.nd4j.common.loader.SourceFactory sourceFactory)
paths - Paths to iterate overrng - Optional random instance to use for shuffling of order. If null, no shuffling will be used.loader - Loader to use when loading DataSetssourceFactory - The factory to use to convert the paths into streams via Sourcepublic MultiDataSet next(int i)
next in interface MultiDataSetIteratorpublic boolean resetSupported()
resetSupported in interface MultiDataSetIteratorpublic boolean asyncSupported()
asyncSupported in interface MultiDataSetIteratorpublic void reset()
reset in interface MultiDataSetIteratorpublic boolean hasNext()
hasNext in interface Iterator<MultiDataSet>public MultiDataSet next()
next in interface Iterator<MultiDataSet>public void remove()
remove in interface Iterator<MultiDataSet>Copyright © 2021. All rights reserved.