Github user jkbradley commented on a diff in the pull request: https://github.com/apache/spark/pull/9474#discussion_r56438362 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/tree/impurity/Impurity.scala --- @@ -90,6 +90,11 @@ private[spark] abstract class ImpurityAggregator(val statsSize: Int) extends Ser */ def getCalculator(allStats: Array[Double], offset: Int): ImpurityCalculator + /** + * Get an [[ImpurityCalculator]] for a node. + * @param sufficientStats Sufficient stats array for a node. + */ + def getCalculator(sufficientStats: Array[Double]): ImpurityCalculator --- End diff -- You should be able to use the existing getCalculator method, passing in offset 0.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org