|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.j48.SplitCriterion | +--weka.classifiers.j48.EntropyBasedSplitCrit | +--weka.classifiers.j48.GainRatioSplitCrit
Class for computing the gain ratio for a given distribution.
Fields inherited from class weka.classifiers.j48.EntropyBasedSplitCrit |
log2 |
Constructor Summary | |
GainRatioSplitCrit()
|
Method Summary | |
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. |
Methods inherited from class weka.classifiers.j48.EntropyBasedSplitCrit |
logFunc, newEnt, oldEnt, splitEnt |
Methods inherited from class weka.classifiers.j48.SplitCriterion |
splitCritValue, splitCritValue, splitCritValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GainRatioSplitCrit()
Method Detail |
public final double splitCritValue(Distribution bags)
splitCritValue
in class SplitCriterion
weka.classifiers.j48.SplitCriterion
public final double splitCritValue(Distribution bags, double totalnoInst, double numerator)
bags
- the distributiontotalnoInst
- the weight of ALL instancesnumerator
- the info gain
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |