public final class GainRatioSplitCrit extends EntropyBasedSplitCrit
| Constructor and Description | 
|---|
| GainRatioSplitCrit() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getRevision()Returns the revision string. | 
| double | splitCritValue(Distribution bags)This method is a straightforward implementation of the gain
 ratio criterion for the given distribution. | 
| double | splitCritValue(Distribution bags,
              double totalnoInst,
              double numerator)This method computes the gain ratio in the same way C4.5 does. | 
logFunc, newEnt, oldEnt, splitEntsplitCritValue, splitCritValue, splitCritValuepublic final double splitCritValue(Distribution bags)
splitCritValue in class SplitCriterionpublic final double splitCritValue(Distribution bags, double totalnoInst, double numerator)
bags - the distributiontotalnoInst - the weight of ALL instancesnumerator - the info gainpublic java.lang.String getRevision()