elbaulp / elbaulp.github.io

Contenido del blog El Baúl del programador usando emacs org-mode
https://elbauldelprogramador.com
4 stars 4 forks source link

How to convert a column to VectorUDT/DenseVector in Spark #51

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

How to convert a column to VectorUDT/DenseVector in Spark

Trying to fit a Linear Regression model in Spark I kept getting the error “Column features must be of type org.apache.spark.ml.linalg.VectorUDT”, I struggled looking for a solution, but finally found the key.

https://elbauldelprogramador.com/en/how-to-convert-column-to-vectorudt-densevector-spark/

jgraille commented 3 years ago

Hi Alejandro, Nice workaround, It was really helpful !

elbaulp commented 3 years ago

@jgraille glad it helped you