HyukjinKwon commented on a change in pull request #30498:
URL: https://github.com/apache/spark/pull/30498#discussion_r530284077



##########
File path: mllib/src/main/scala/org/apache/spark/ml/functions.scala
##########
@@ -72,6 +72,21 @@ object functions {
     }
   }
 
+  private val arrayToVectorUdf = udf { array: Seq[Double] =>
+    Vectors.dense(array.toArray)
+  }
+
+  /**
+   * Converts a column of array<NumericType&gt type into a column of MLlib

Review comment:
       I would just say as prose:
   
   ```
   Converts a column of array of numeric type into a column of dense vectors in 
MLlib.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to