Github user erikerlandson commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13440#discussion_r218246415
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/tree/impurity/Gini.scala ---
    @@ -71,6 +71,23 @@ object Gini extends Impurity {
       @Since("1.1.0")
       def instance: this.type = this
     
    +  /**
    +   * :: DeveloperApi ::
    +   * p-values for test-statistic measures, unsupported for [[Gini]]
    +   */
    +  @Since("2.2.0")
    +  @DeveloperApi
    +  def calculate(calcL: ImpurityCalculator, calcR: ImpurityCalculator): 
Double =
    --- End diff --
    
    I'll consider if there's a unifying idea here. pval-based metrics require 
integrating information across the new split children, which I believe was not 
the case for existing methods.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to