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

    https://github.com/apache/spark/pull/22063#discussion_r213593596
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala ---
    @@ -164,19 +164,15 @@ abstract class ClassificationModel[FeaturesType, M <: 
ClassificationModel[Featur
         var outputData = dataset
         var numColsOutput = 0
         if (getRawPredictionCol != "") {
    -      val predictRawUDF = udf { (features: Any) =>
    --- End diff --
    
    No idea, but in any case the new version seems nicer :-) Both 2.11 and 2.12 
will happily generate a `typeTag` for `Any`, though, so that wouldn't 
immediately explain it.  To see what was actually inferred, you could compile 
with `-Xprint:typer` (ideally after a full compile and then just making this 
file recompile incrementally).


---

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

Reply via email to