Skip to content

Commit 0ea30b3

Browse files
committed
callUDF => udf in Classifier where possible
1 parent 197ec82 commit 0ea30b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ abstract class ClassificationModel[FeaturesType, M <: ClassificationModel[Featur
108108
}
109109
if (getPredictionCol != "") {
110110
val predUDF = if (getRawPredictionCol != "") {
111-
callUDF(raw2prediction _, DoubleType, col(getRawPredictionCol))
111+
udf[Double, Vector](raw2prediction).apply(col(getRawPredictionCol))
112112
} else {
113113
callUDF(predict _, DoubleType, col(getFeaturesCol))
114114
}

0 commit comments

Comments
 (0)