public class DoubleArrayToLabeledPoint extends Object implements org.apache.spark.api.java.function.Function<double[],org.apache.spark.mllib.regression.LabeledPoint>
Modifier and Type | Class and Description |
---|---|
static class |
DoubleArrayToLabeledPoint.Builder |
Modifier and Type | Method and Description |
---|---|
org.apache.spark.mllib.regression.LabeledPoint |
call(double[] tokens)
Function to transform double array into labeled point
|
public org.apache.spark.mllib.regression.LabeledPoint call(double[] tokens)
call
in interface org.apache.spark.api.java.function.Function<double[],org.apache.spark.mllib.regression.LabeledPoint>
tokens
- Double array of tokensCopyright © 2015 WSO2, Inc.. All Rights Reserved.