You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Peng Meng (JIRA)" <ji...@apache.org> on 2017/08/03 07:10:00 UTC

[jira] [Created] (SPARK-21623) Comments of parentStats on ml/tree/impl/DTStatsAggregator.scala is wrong

Peng Meng created SPARK-21623:
---------------------------------

             Summary: Comments of parentStats on ml/tree/impl/DTStatsAggregator.scala is wrong
                 Key: SPARK-21623
                 URL: https://issues.apache.org/jira/browse/SPARK-21623
             Project: Spark
          Issue Type: Improvement
          Components: ML
    Affects Versions: 2.3.0
            Reporter: Peng Meng
            Priority: Minor



{code:java}
   * Note: this is necessary because stats for the parent node are not available
   *       on the first iteration of tree learning.
   */
  private val parentStats: Array[Double] = new Array[Double](statsSize)
{code}

This comment is not right. Actually,  parentStats is not only used for the first iteration. It is used with all the iteration for unordered featrues.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org