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

    https://github.com/apache/spark/pull/6993#discussion_r33195310
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/OneVsRest.scala ---
    @@ -90,7 +90,7 @@ final class OneVsRestModel private[ml] (
         val accColName = "mbc$acc" + UUID.randomUUID().toString
         val init: () => Map[Int, Double] = () => {Map()}
         val mapType = MapType(IntegerType, DoubleType, valueContainsNull = 
false)
    -    val newDataset = dataset.withColumn(accColName, callUDF(init, mapType))
    +    val newDataset = dataset.withColumn(accColName, udf(init).apply())
    --- End diff --
    
    Style nit: I think we call `udf` above so the invocation just looks like 
`init()`.


---
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