Hi Satyajit,

You can just import mllib's Vectors (org.apache.spark.mllib.linalg.Vectors)
and call its fromML method to convert ml's Vector to mllib's Vector.

For example:

import org.apache.spark.mllib.linalg.{Vectors => OldVectors}

val row = check.rdd.map(row =>
OldVectors.fromML(row.getAs[SparseVector]("features")))
val mat = new RowMatrix(row)

 



-----
Liang-Chi Hsieh | @viirya
Spark Technology Center
--
View this message in context: 
http://apache-spark-developers-list.1001551.n3.nabble.com/Issue-in-using-DenseVector-in-RowMatrix-error-could-be-due-to-ml-and-mllib-package-changes-tp20182p20188.html
Sent from the Apache Spark Developers List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscr...@spark.apache.org

Reply via email to