Hi
I'm trying to use Linear Regression from ml library
but the problem is the independent variable should be a vector.
My code snippet is as as follows
var dataDF = sqlContext.emptyDataFrame
dataDF = sqlContext.sql("SELECT "+
dependentVariable+","+independentVariables +" FROM " +
Hi Arunkumar,
If you want to create a vector from multiple columns of DataFrame, Spark ML
provided VectorAssembler to help us.
Yanbo
2015-12-21 13:44 GMT+08:00 Arunkumar Pillai :
> Hi
>
>
> I'm trying to use Linear Regression from ml library
>
> but the problem is the