public class BatchDataSetsFunction
extends org.datavec.spark.transform.BaseFlatMapFunctionAdaptee<java.util.Iterator<org.nd4j.linalg.dataset.DataSet>,org.nd4j.linalg.dataset.DataSet>
DataVecDataSetFunction
together into minibatches.
RDD<DataSet> mySingleExampleDataSets = ...;
RDD<DataSet> batchData = mySingleExampleDataSets.mapPartitions(new BatchDataSetsFunction(batchSize));
Constructor and Description |
---|
BatchDataSetsFunction(int minibatchSize) |