Class SDRSplitCriterionAMRules
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.core.splitcriteria.VarianceReductionSplitCriterion
-
- moa.classifiers.core.splitcriteria.SDRSplitCriterion
-
- moa.classifiers.rules.core.splitcriteria.SDRSplitCriterionAMRules
-
- All Implemented Interfaces:
Configurable
,Serializable
,SplitCriterion
,AMRulesSplitCriterion
,MOAObject
,OptionHandler
- Direct Known Subclasses:
SDRSplitCriterionAMRulesNode
public class SDRSplitCriterionAMRules extends SDRSplitCriterion implements AMRulesSplitCriterion
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description SDRSplitCriterionAMRules()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
computeBranchSplitMerits(double[][] postSplitDists)
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 class moa.classifiers.core.splitcriteria.SDRSplitCriterion
computeSD
-
Methods inherited from class moa.classifiers.core.splitcriteria.VarianceReductionSplitCriterion
getDescription, prepareForUseImpl
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
getDescription, measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Method Detail
-
getMeritOfSplit
public double getMeritOfSplit(double[] preSplitDist, double[][] postSplitDists)
Description copied from interface:SplitCriterion
Computes the merit of splitting for a given ditribution before the split and after it.- Specified by:
getMeritOfSplit
in interfaceAMRulesSplitCriterion
- Specified by:
getMeritOfSplit
in interfaceSplitCriterion
- Overrides:
getMeritOfSplit
in classVarianceReductionSplitCriterion
- Parameters:
preSplitDist
- the class distribution before the splitpostSplitDists
- the class distribution after the split- Returns:
- value of the merit of splitting
-
getRangeOfMerit
public double getRangeOfMerit(double[] preSplitDist)
Description copied from interface:SplitCriterion
Computes the range of splitting merit- Specified by:
getRangeOfMerit
in interfaceAMRulesSplitCriterion
- Specified by:
getRangeOfMerit
in interfaceSplitCriterion
- Overrides:
getRangeOfMerit
in classVarianceReductionSplitCriterion
- Parameters:
preSplitDist
- the class distribution before the split- Returns:
- value of the range of splitting merit
-
computeBranchSplitMerits
public double[] computeBranchSplitMerits(double[][] postSplitDists)
- Specified by:
computeBranchSplitMerits
in interfaceAMRulesSplitCriterion
-
-