public class DataVecByteDataSetFunction
extends java.lang.Object
implements org.apache.spark.api.java.function.PairFunction<scala.Tuple2<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>,java.lang.Double,org.nd4j.linalg.dataset.DataSet>
Constructor and Description |
---|
DataVecByteDataSetFunction(int labelIndex,
int numPossibleLabels,
int batchSize,
int byteFileLen) |
DataVecByteDataSetFunction(int labelIndex,
int numPossibleLabels,
int batchSize,
int byteFileLen,
boolean regression) |
DataVecByteDataSetFunction(int labelIndex,
int numPossibleLabels,
int batchSize,
int byteFileLen,
boolean regression,
org.nd4j.linalg.dataset.api.DataSetPreProcessor preProcessor) |
Modifier and Type | Method and Description |
---|---|
scala.Tuple2<java.lang.Double,org.nd4j.linalg.dataset.DataSet> |
call(scala.Tuple2<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable> inputTuple) |
public DataVecByteDataSetFunction(int labelIndex, int numPossibleLabels, int batchSize, int byteFileLen)
public DataVecByteDataSetFunction(int labelIndex, int numPossibleLabels, int batchSize, int byteFileLen, boolean regression)
public DataVecByteDataSetFunction(int labelIndex, int numPossibleLabels, int batchSize, int byteFileLen, boolean regression, org.nd4j.linalg.dataset.api.DataSetPreProcessor preProcessor)
labelIndex
- Index of the label columnnumPossibleLabels
- Number of classes for classification (not used if regression = true)batchSize
- size of examples in DataSet. Pass in total examples if including allbyteFileLen
- number of bytes per individual fileregression
- False for classification, true for regressionpreProcessor
- DataSetPreprocessor (may be null)public scala.Tuple2<java.lang.Double,org.nd4j.linalg.dataset.DataSet> call(scala.Tuple2<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable> inputTuple) throws java.lang.Exception
call
in interface org.apache.spark.api.java.function.PairFunction<scala.Tuple2<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>,java.lang.Double,org.nd4j.linalg.dataset.DataSet>
java.lang.Exception