use of org.apache.spark.mllib.linalg.VectorUDT in project net.jgp.labs.spark by jgperrin.
the class FirstPrediction method start.
private void start() {
SparkSession spark = SparkSession.builder().appName("First Prediction").master("local").getOrCreate();
StructType schema = new StructType(new StructField[] { new StructField("label", DataTypes.DoubleType, false, Metadata.empty()), new StructField("features", new VectorUDT(), false, Metadata.empty()) });
// TODO this example is not working yet
}
Aggregations