Class RegressorImpurity.ImpurityTuple
java.lang.Object
org.tribuo.regression.rtree.impurity.RegressorImpurity.ImpurityTuple
- Enclosing interface:
- RegressorImpurity
Tuple class for the impurity and summed weight. Will be a record one day.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
impurity
public final float impurityThe impurity value. -
weight
public final float weightThe 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.
-