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