public class CanovaByteDataSetFunction extends Object implements org.apache.spark.api.java.function.PairFunction<scala.Tuple2<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable>,Double,org.nd4j.linalg.dataset.DataSet>
| Constructor and Description |
|---|
CanovaByteDataSetFunction(int labelIndex,
int numPossibleLabels,
int batchSize,
int byteFileLen) |
CanovaByteDataSetFunction(int labelIndex,
int numPossibleLabels,
int batchSize,
int byteFileLen,
boolean regression) |
CanovaByteDataSetFunction(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<Double,org.nd4j.linalg.dataset.DataSet> |
call(scala.Tuple2<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable> inputTuple) |
public CanovaByteDataSetFunction(int labelIndex,
int numPossibleLabels,
int batchSize,
int byteFileLen)
public CanovaByteDataSetFunction(int labelIndex,
int numPossibleLabels,
int batchSize,
int byteFileLen,
boolean regression)
public CanovaByteDataSetFunction(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)Copyright © 2016. All Rights Reserved.