Interface SplitCriterion
-
- All Superinterfaces:
Configurable
,MOAObject
,OptionHandler
,Serializable
- All Known Subinterfaces:
AMRulesSplitCriterion
- All Known Implementing Classes:
GiniSplitCriterion
,InfoGainSplitCriterion
,InfoGainSplitCriterionMultilabel
,SDRSplitCriterion
,SDRSplitCriterionAMRules
,SDRSplitCriterionAMRulesNode
,VarianceRatioSplitCriterion
,VarianceReductionSplitCriterion
,VRSplitCriterion
public interface SplitCriterion extends OptionHandler
Interface for computing splitting criteria. with respect to distributions of class values. The split criterion is used as a parameter on decision trees and decision stumps. The two split criteria most used are Information Gain and Gini.- Version:
- $Revision: 7 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getMeritOfSplit(double[] preSplitDist, double[][] postSplitDists)
Computes the merit of splitting for a given ditribution before the split and after it.double
getRangeOfMerit(double[] preSplitDist)
Computes the range of splitting merit-
Methods inherited from interface moa.MOAObject
getDescription, measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Method Detail
-
getMeritOfSplit
double getMeritOfSplit(double[] preSplitDist, double[][] postSplitDists)
Computes the merit of splitting for a given ditribution before the split and after it.- Parameters:
preSplitDist
- the class distribution before the splitpostSplitDists
- the class distribution after the split- Returns:
- value of the merit of splitting
-
getRangeOfMerit
double getRangeOfMerit(double[] preSplitDist)
Computes the range of splitting merit- Parameters:
preSplitDist
- the class distribution before the split- Returns:
- value of the range of splitting merit
-
-