How to compute cosine similarity between 2 Spark Vector. I am using the new ml package.
Spark 2.1.1
EDIT:
Spark provide RowMatrix which can be used to compute similarity but it accepts mllib.vector not an ml.vector.
Is there a way to convert Vectors from the different packages?
Is there an implementation that uses ml.vector?