Class RegressorImpurity.ImpurityTuple

java.lang.Object
org.tribuo.regression.rtree.impurity.RegressorImpurity.ImpurityTuple
Enclosing interface:
RegressorImpurity

public static class RegressorImpurity.ImpurityTuple extends Object
Tuple class for the impurity and summed weight. Will be a record one day.
  • Field Details

    • impurity

      public final float impurity
      The impurity value.
    • weight

      public final float weight
      The sum of the weights.
  • Constructor Details

    • ImpurityTuple

      public ImpurityTuple(float impurity, float weight)
      Construct an impurity tuple.
      Parameters:
      impurity - The impurity value.
      weight - The sum of the weights.