Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7652#discussion_r35946089
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/OneVsRest.scala ---
    @@ -127,10 +128,16 @@ final class OneVsRestModel private[ml] (
           predictions.maxBy(_._2)._1.toDouble
         }
     
    +    // output the index of the classifier with highest confidence as 
prediction
    +    val probabilityUDF = udf { (predictions: Map[Int, Double]) =>
    --- End diff --
    
    This is outputting a Double, but it should return a Vector with one value 
for each class label.  Actually, the output value should be the accCol 
converted to a Vector.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to