srowen commented on a change in pull request #15622: [SPARK-18092][ML] Fix 
column prediction type error
URL: https://github.com/apache/spark/pull/15622#discussion_r242002585
 
 

 ##########
 File path: 
mllib/src/main/scala/org/apache/spark/ml/evaluation/MulticlassClassificationEvaluator.scala
 ##########
 @@ -76,7 +76,9 @@ class MulticlassClassificationEvaluator @Since("1.5.0") 
(@Since("1.5.0") overrid
     SchemaUtils.checkNumericType(schema, $(labelCol))
 
     val predictionAndLabels =
-      dataset.select(col($(predictionCol)), 
col($(labelCol)).cast(DoubleType)).rdd.map {
+      dataset.select(col($(predictionCol)).cast(DoubleType), 
col($(labelCol)).cast(DoubleType))
 
 Review comment:
   Ditto?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]

Reply via email to