zhengruifeng commented on a change in pull request #27070:
[SPARK-9612][ML][FOLLOWUP] fix GBT support weights if subsamplingRate<1
URL: https://github.com/apache/spark/pull/27070#discussion_r362690545
##########
File path:
mllib/src/main/scala/org/apache/spark/ml/tree/impl/RandomForest.scala
##########
@@ -577,7 +592,7 @@ private[spark] object RandomForest extends Logging with
Serializable {
// transform nodeStatsAggregators array to (nodeIndex,
nodeAggregateStats) pairs,
// which can be combined with other partition using `reduceByKey`
- nodeStatsAggregators.view.zipWithIndex.map(_.swap).iterator
+ nodeStatsAggregators.iterator.zipWithIndex.map(_.swap)
Review comment:
IDEA editor always shows warnings on the two lines, change them to avoid
warnings.
----------------------------------------------------------------
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]