Package weka.classifiers.trees.ht
Class GiniSplitMetric
java.lang.Object
weka.classifiers.trees.ht.SplitMetric
weka.classifiers.trees.ht.GiniSplitMetric
- All Implemented Interfaces:
- Serializable
Implements the gini splitting criterion
- Version:
- $Revision: 9720 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoubleevaluateSplit(Map<String, WeightMass> preDist, List<Map<String, WeightMass>> postDist) Evaluate the merit of a splitdoublegetMetricRange(Map<String, WeightMass> preDist) Get the range of the splitting metricstatic doublegini(Map<String, WeightMass> dist) Return the gini metric computed from the supplied distributionMethods inherited from class weka.classifiers.trees.ht.SplitMetricsum
- 
Constructor Details- 
GiniSplitMetricpublic GiniSplitMetric()
 
- 
- 
Method Details- 
evaluateSplitDescription copied from class:SplitMetricEvaluate the merit of a split- Specified by:
- evaluateSplitin class- SplitMetric
- Parameters:
- preDist- the class distribution before the split
- postDist- the class distributions after the split
- Returns:
- the merit of the split
 
- 
giniReturn the gini metric computed from the supplied distribution- Parameters:
- dist- dist the distribution to compute the gini metric from
- Returns:
 
- 
getMetricRangeDescription copied from class:SplitMetricGet the range of the splitting metric- Specified by:
- getMetricRangein class- SplitMetric
- Parameters:
- preDist- the pre-split class distribution
- Returns:
- the range of the splitting metric
 
 
-