Skip to content

Commit

Permalink
callUDF => udf in Classifier where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFradet committed Jun 24, 2015
1 parent 197ec82 commit 0ea30b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ abstract class ClassificationModel[FeaturesType, M <: ClassificationModel[Featur
}
if (getPredictionCol != "") {
val predUDF = if (getRawPredictionCol != "") {
callUDF(raw2prediction _, DoubleType, col(getRawPredictionCol))
udf[Double, Vector](raw2prediction).apply(col(getRawPredictionCol))
} else {
callUDF(predict _, DoubleType, col(getFeaturesCol))
}
Expand Down

0 comments on commit 0ea30b3

Please sign in to comment.