Package weka.classifiers.trees.ht
Class InfoGainSplitMetric
java.lang.Object
weka.classifiers.trees.ht.SplitMetric
weka.classifiers.trees.ht.InfoGainSplitMetric
- All Implemented Interfaces:
Serializable
Implements the info gain splitting criterion
- Version:
- $Revision: 9720 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluateSplit
(Map<String, WeightMass> preDist, List<Map<String, WeightMass>> postDist) Evaluate the merit of a splitdouble
getMetricRange
(Map<String, WeightMass> preDist) Get the range of the splitting metricMethods inherited from class weka.classifiers.trees.ht.SplitMetric
sum
-
Constructor Details
-
InfoGainSplitMetric
public InfoGainSplitMetric(double minFracWeightForTwoBranches)
-
-
Method Details
-
evaluateSplit
Description copied from class:SplitMetric
Evaluate the merit of a split- Specified by:
evaluateSplit
in classSplitMetric
- Parameters:
preDist
- the class distribution before the splitpostDist
- the class distributions after the split- Returns:
- the merit of the split
-
getMetricRange
Description copied from class:SplitMetric
Get the range of the splitting metric- Specified by:
getMetricRange
in classSplitMetric
- Parameters:
preDist
- the pre-split class distribution- Returns:
- the range of the splitting metric
-