public class PathSparkDataSetIterator extends BaseDataSetIterator<java.lang.String>
DataSet.save(OutputStream)
) from
a String that represents the path (for example, on HDFS)Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE |
batch, cursor, dataSetStreams, inputColumns, iter, preloadedDataSet, preprocessor, totalOutcomes
Constructor and Description |
---|
PathSparkDataSetIterator(java.util.Collection<java.lang.String> dataSetStreams) |
PathSparkDataSetIterator(java.util.Iterator<java.lang.String> iter) |
Modifier and Type | Method and Description |
---|---|
protected org.nd4j.linalg.dataset.DataSet |
load(java.lang.String path) |
org.nd4j.linalg.dataset.DataSet |
next() |
int |
totalExamples() |
asyncSupported, batch, cursor, getLabels, getPreProcessor, hasNext, inputColumns, next, numExamples, remove, reset, resetSupported, setPreProcessor, totalOutcomes
public static final int BUFFER_SIZE
public PathSparkDataSetIterator(java.util.Iterator<java.lang.String> iter)
public PathSparkDataSetIterator(java.util.Collection<java.lang.String> dataSetStreams)
public int totalExamples()
totalExamples
in interface org.nd4j.linalg.dataset.api.iterator.DataSetIterator
totalExamples
in class BaseDataSetIterator<java.lang.String>
public org.nd4j.linalg.dataset.DataSet next()
protected org.nd4j.linalg.dataset.DataSet load(java.lang.String path)
load
in class BaseDataSetIterator<java.lang.String>