public final class GainRatioSplitCrit extends EntropyBasedSplitCrit
| Constructor and Description |
|---|
GainRatioSplitCrit() |
| Modifier and Type | Method and Description |
|---|---|
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 String getRevision()
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.