Github user jkbradley commented on a diff in the pull request: https://github.com/apache/spark/pull/19433#discussion_r150352747 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/tree/model/InformationGainStats.scala --- @@ -112,7 +113,7 @@ private[spark] object ImpurityStats { * minimum number of instances per node. */ def getInvalidImpurityStats(impurityCalculator: ImpurityCalculator): ImpurityStats = { - new ImpurityStats(Double.MinValue, impurityCalculator.calculate(), + new ImpurityStats(Double.MinValue, impurity = -1, --- End diff -- Q: Why -1 here?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org