Re: VectorUDT and ml.Vector

2016-11-19 Thread Yanbo Liang
The reason behind this error can be inferred from the error log: *MLUtils.convertMatrixColumnsFromML *was used to convert ml.linalg.Matrix to mllib.linalg.Matrix, but it looks like the column type is ml.linalg.Vector in your case. Could you check the type of column "features" in your dataframe

VectorUDT and ml.Vector for SVD

2016-11-07 Thread ganeshkrishnan
I am trying to run a SVD on a dataframe and I have used ml TF-IDF which has created a dataframe. Now for Singular Value Decomposition I am trying to use RowMatrix which takes in RDD with mllib.Vector so I have to convert this Dataframe with what I assumed was ml.Vector However the conversion val

VectorUDT and ml.Vector

2016-11-07 Thread Ganesh
I am trying to run a SVD on a dataframe and I have used ml TF-IDF which has created a dataframe. Now for Singular Value Decomposition I am trying to use RowMatrix which takes in RDD with mllib.Vector so I have to convert this Dataframe with what I assumed was ml.Vector However the conversion