public class RecordReaderMultiDataSetIterator
extends java.lang.Object
implements org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
MultiDataSetIterator
for data from one or more RecordReaders and SequenceRecordReadersRecordReaderMultiDataSetIterator.Builder
to specify the various
inputs and subsets.Modifier and Type | Class and Description |
---|---|
static class |
RecordReaderMultiDataSetIterator.AlignmentMode
When dealing with time series data of different lengths, how should we align the input/labels time series?
For equal length: use EQUAL_LENGTH
For sequence classification: use ALIGN_END
|
static class |
RecordReaderMultiDataSetIterator.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
asyncSupported() |
boolean |
hasNext() |
org.nd4j.linalg.dataset.api.MultiDataSet |
loadFromMetaData(java.util.List<org.datavec.api.records.metadata.RecordMetaData> list)
Load a multiple sequence examples to a DataSet, using the provided RecordMetaData instances.
|
org.nd4j.linalg.dataset.api.MultiDataSet |
loadFromMetaData(org.datavec.api.records.metadata.RecordMetaData recordMetaData)
Load a single example to a DataSet, using the provided RecordMetaData.
|
org.nd4j.linalg.dataset.api.MultiDataSet |
next() |
org.nd4j.linalg.dataset.api.MultiDataSet |
next(int num) |
void |
remove() |
void |
reset() |
boolean |
resetSupported() |
void |
setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor) |
public org.nd4j.linalg.dataset.api.MultiDataSet next()
next
in interface java.util.Iterator<org.nd4j.linalg.dataset.api.MultiDataSet>
public void remove()
remove
in interface java.util.Iterator<org.nd4j.linalg.dataset.api.MultiDataSet>
public org.nd4j.linalg.dataset.api.MultiDataSet next(int num)
next
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public void setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor)
setPreProcessor
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public boolean resetSupported()
resetSupported
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public boolean asyncSupported()
asyncSupported
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public void reset()
reset
in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator
public boolean hasNext()
hasNext
in interface java.util.Iterator<org.nd4j.linalg.dataset.api.MultiDataSet>
public org.nd4j.linalg.dataset.api.MultiDataSet loadFromMetaData(org.datavec.api.records.metadata.RecordMetaData recordMetaData) throws java.io.IOException
loadFromMetaData(List)
recordMetaData
- RecordMetaData to load from. Should have been produced by the given record readerjava.io.IOException
- If an error occurs during loading of the datapublic org.nd4j.linalg.dataset.api.MultiDataSet loadFromMetaData(java.util.List<org.datavec.api.records.metadata.RecordMetaData> list) throws java.io.IOException
list
- List of RecordMetaData instances to load from. Should have been produced by the record reader provided
to the SequenceRecordReaderDataSetIterator constructorjava.io.IOException
- If an error occurs during loading of the data