public class GiniAggregator extends ImpurityAggregator implements scala.Serializable
| Constructor and Description |
|---|
GiniAggregator(int numClasses) |
| Modifier and Type | Method and Description |
|---|---|
GiniCalculator |
getCalculator(double[] allStats,
int offset)
Get an
ImpurityCalculator for a (node, feature, bin). |
void |
update(double[] allStats,
int offset,
double label,
double instanceWeight)
Update stats for one (node, feature, bin) with the given label.
|
merge, statsSizepublic void update(double[] allStats,
int offset,
double label,
double instanceWeight)
update in class ImpurityAggregatorallStats - Flat stats array, with stats for this (node, feature, bin) contiguous.offset - Start index of stats for this (node, feature, bin).public GiniCalculator getCalculator(double[] allStats, int offset)
ImpurityCalculator for a (node, feature, bin).getCalculator in class ImpurityAggregatorallStats - Flat stats array, with stats for this (node, feature, bin) contiguous.offset - Start index of stats for this (node, feature, bin).