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:
- Serializable, RevisionHandler
public final class GainRatioSplitCrit
- extends EntropyBasedSplitCrit
Class for computing the gain ratio for a given distribution.
- Version:
- $Revision: 8034 $
- Author:
- Eibe Frank ([email protected])
- See Also:
- Serialized Form
Method Summary |
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. |
GainRatioSplitCrit
public GainRatioSplitCrit()
splitCritValue
public final double splitCritValue(Distribution bags)
- This method is a straightforward implementation of the gain
ratio criterion for the given distribution.
- Overrides:
splitCritValue
in class SplitCriterion
- 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 String getRevision()
- Returns the revision string.
- Returns:
- the revision
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.