public class RecordReaderMultiDataSetIterator extends Object implements org.nd4j.linalg.dataset.api.iterator.MultiDataSetIterator, Serializable
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() |
org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor |
getPreProcessor() |
boolean |
hasNext() |
org.nd4j.linalg.dataset.api.MultiDataSet |
loadFromMetaData(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) |
org.nd4j.linalg.dataset.api.MultiDataSet |
nextMultiDataSet(Map<String,List<List<org.datavec.api.writable.Writable>>> nextRRVals,
Map<String,List<org.nd4j.linalg.api.ndarray.INDArray>> nextRRValsBatched,
Map<String,List<List<List<org.datavec.api.writable.Writable>>>> nextSeqRRVals,
List<org.datavec.api.records.metadata.RecordMetaDataComposableMap> nextMetas) |
void |
remove() |
void |
reset() |
boolean |
resetSupported() |
void |
setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic org.nd4j.linalg.dataset.api.MultiDataSet next()
public void remove()
public org.nd4j.linalg.dataset.api.MultiDataSet next(int num)
next in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic org.nd4j.linalg.dataset.api.MultiDataSet nextMultiDataSet(Map<String,List<List<org.datavec.api.writable.Writable>>> nextRRVals, Map<String,List<org.nd4j.linalg.api.ndarray.INDArray>> nextRRValsBatched, Map<String,List<List<List<org.datavec.api.writable.Writable>>>> nextSeqRRVals, List<org.datavec.api.records.metadata.RecordMetaDataComposableMap> nextMetas)
public void setPreProcessor(org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor preProcessor)
setPreProcessor in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic org.nd4j.linalg.dataset.api.MultiDataSetPreProcessor getPreProcessor()
getPreProcessor in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic boolean resetSupported()
resetSupported in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic boolean asyncSupported()
asyncSupported in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic void reset()
reset in interface org.nd4j.linalg.dataset.api.iterator.MultiDataSetIteratorpublic boolean hasNext()
public org.nd4j.linalg.dataset.api.MultiDataSet loadFromMetaData(org.datavec.api.records.metadata.RecordMetaData recordMetaData)
throws IOException
loadFromMetaData(List)recordMetaData - RecordMetaData to load from. Should have been produced by the given record readerIOException - If an error occurs during loading of the datapublic org.nd4j.linalg.dataset.api.MultiDataSet loadFromMetaData(List<org.datavec.api.records.metadata.RecordMetaData> list) throws IOException
list - List of RecordMetaData instances to load from. Should have been produced by the record reader provided
to the SequenceRecordReaderDataSetIterator constructorIOException - If an error occurs during loading of the dataCopyright © 2018. All rights reserved.