public class InfoGainSplitMetric extends SplitMetric implements Serializable
| Constructor and Description |
|---|
InfoGainSplitMetric(double minFracWeightForTwoBranches) |
| Modifier and Type | Method and Description |
|---|---|
double |
evaluateSplit(Map<String,WeightMass> preDist,
List<Map<String,WeightMass>> postDist)
Evaluate the merit of a split
|
double |
getMetricRange(Map<String,WeightMass> preDist)
Get the range of the splitting metric
|
sumpublic InfoGainSplitMetric(double minFracWeightForTwoBranches)
public double evaluateSplit(Map<String,WeightMass> preDist, List<Map<String,WeightMass>> postDist)
SplitMetricevaluateSplit in class SplitMetricpreDist - the class distribution before the splitpostDist - the class distributions after the splitpublic double getMetricRange(Map<String,WeightMass> preDist)
SplitMetricgetMetricRange in class SplitMetricpreDist - the pre-split class distributionCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.