public class PortableDataStreamDataSetIterator extends BaseDataSetIterator<org.apache.spark.input.PortableDataStream>
DataSet.save(OutputStream)
) from
a PortableDataStream
, usually obtained from SparkContext.binaryFiles()batch, cursor, dataSetStreams, inputColumns, iter, preloadedDataSet, preprocessor, totalOutcomes
Constructor and Description |
---|
PortableDataStreamDataSetIterator(java.util.Collection<org.apache.spark.input.PortableDataStream> dataSetStreams) |
PortableDataStreamDataSetIterator(java.util.Iterator<org.apache.spark.input.PortableDataStream> iter) |
Modifier and Type | Method and Description |
---|---|
protected org.nd4j.linalg.dataset.DataSet |
load(org.apache.spark.input.PortableDataStream pds) |
org.nd4j.linalg.dataset.DataSet |
next() |
int |
totalExamples() |
asyncSupported, batch, cursor, getLabels, getPreProcessor, hasNext, inputColumns, next, numExamples, remove, reset, resetSupported, setPreProcessor, totalOutcomes
public PortableDataStreamDataSetIterator(java.util.Iterator<org.apache.spark.input.PortableDataStream> iter)
public PortableDataStreamDataSetIterator(java.util.Collection<org.apache.spark.input.PortableDataStream> dataSetStreams)
public int totalExamples()
totalExamples
in interface org.nd4j.linalg.dataset.api.iterator.DataSetIterator
totalExamples
in class BaseDataSetIterator<org.apache.spark.input.PortableDataStream>
public org.nd4j.linalg.dataset.DataSet next()
protected org.nd4j.linalg.dataset.DataSet load(org.apache.spark.input.PortableDataStream pds)
load
in class BaseDataSetIterator<org.apache.spark.input.PortableDataStream>