zhengruifeng commented on a change in pull request #20732: [SPARK-23578][ML]
Add multicolumn support for Binarizer
URL: https://github.com/apache/spark/pull/20732#discussion_r326996721
##########
File path:
examples/src/main/scala/org/apache/spark/examples/ml/BinarizerExample.scala
##########
@@ -45,7 +45,23 @@ object BinarizerExample {
binarizedDataFrame.show()
// $example off$
+ // $example on$
+ val data2 = Array((0, 0.1), (1, 0.8), (2, 0.2))
+ val dataFrame2 = spark.createDataFrame((0 until data.length).map { idx =>
Review comment:
what about adding a vector column?
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]