public class RandomMultiDataSetIterator extends Object implements MultiDataSetIterator
| Modifier and Type | Class and Description |
|---|---|
static class |
RandomMultiDataSetIterator.Builder |
static class |
RandomMultiDataSetIterator.Values |
| Constructor and Description |
|---|
RandomMultiDataSetIterator(int numMiniBatches,
@NonNull List<org.nd4j.common.primitives.Triple<long[],Character,RandomMultiDataSetIterator.Values>> features,
@NonNull List<org.nd4j.common.primitives.Triple<long[],Character,RandomMultiDataSetIterator.Values>> labels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported() |
static INDArray |
generate(long[] shape,
char order,
RandomMultiDataSetIterator.Values values)
Generate a random array with the specified shape and order
|
static INDArray |
generate(long[] shape,
RandomMultiDataSetIterator.Values values)
Generate a random array with the specified shape
|
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, setPreProcessorforEachRemainingpublic RandomMultiDataSetIterator(int numMiniBatches,
@NonNull
@NonNull List<org.nd4j.common.primitives.Triple<long[],Character,RandomMultiDataSetIterator.Values>> features,
@NonNull
@NonNull List<org.nd4j.common.primitives.Triple<long[],Character,RandomMultiDataSetIterator.Values>> labels)
numMiniBatches - Number of minibatches per epochfeatures - Each triple in the list specifies the shape, array order and type of values for the features arrayslabels - Each triple in the list specifies the shape, array order and type of values for the labels arrayspublic 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>public static INDArray generate(long[] shape, RandomMultiDataSetIterator.Values values)
shape - Shape of the arrayvalues - Values to fill the array withpublic static INDArray generate(long[] shape, char order, RandomMultiDataSetIterator.Values values)
shape - Shape of the arrayorder - Order of array ('c' or 'f')values - Values to fill the array withCopyright © 2021. All rights reserved.