weka.classifiers.trees.j48
Class GainRatioSplitCrit
- java.lang.Object
-
- weka.classifiers.trees.j48.SplitCriterion
-
- weka.classifiers.trees.j48.EntropyBasedSplitCrit
-
- weka.classifiers.trees.j48.GainRatioSplitCrit
-
- All Implemented Interfaces:
- java.io.Serializable, RevisionHandler
public final class GainRatioSplitCrit extends EntropyBasedSplitCrit
Class for computing the gain ratio for a given distribution.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description GainRatioSplitCrit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetRevision()Returns the revision string.doublesplitCritValue(Distribution bags)This method is a straightforward implementation of the gain ratio criterion for the given distribution.doublesplitCritValue(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.trees.j48.EntropyBasedSplitCrit
lnFunc, newEnt, oldEnt, splitEnt
-
Methods inherited from class weka.classifiers.trees.j48.SplitCriterion
splitCritValue, splitCritValue, splitCritValue
-
-
-
-
Method Detail
-
splitCritValue
public final double splitCritValue(Distribution bags)
This method is a straightforward implementation of the gain ratio criterion for the given distribution.- Overrides:
splitCritValuein classSplitCriterion- Returns:
- value of splitting criterion. 0 by default
-
splitCritValue
public final double splitCritValue(Distribution bags, double totalnoInst, double numerator)
This method computes the gain ratio in the same way C4.5 does.- Parameters:
bags- the distributiontotalnoInst- the weight of ALL instancesnumerator- the info gain
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Returns:
- the revision
-
-
DataMelt 3.0 © DataMelt by jWork.ORG