zhengruifeng commented on a change in pull request #25383: [SPARK-13677][ML]
Implement Tree-Based Feature Transformation for ML
URL: https://github.com/apache/spark/pull/25383#discussion_r312688458
##########
File path:
mllib/src/main/scala/org/apache/spark/ml/regression/DecisionTreeRegressor.scala
##########
@@ -220,17 +227,23 @@ class DecisionTreeRegressionModel private[ml] (
var predictionColumns = Seq.empty[Column]
if ($(predictionCol).nonEmpty) {
- val predictUDF = udf { (features: Vector) => predict(features) }
+ val predictUDF = udf { vector: Vector => predict(vector) }
Review comment:
to remove the unnecessary brackets, then I rename the var to keep in line
with other places. I am neutral to revert these.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]