类 ResidualSplit
java.lang.Object
weka.classifiers.trees.j48.ClassifierSplitModel
weka.classifiers.trees.lmt.ResidualSplit
- 所有已实现的接口:
Serializable
,Cloneable
,RevisionHandler
Helper class for logistic model trees (weka.classifiers.trees.lmt.LMT) to implement the
splitting criterion based on residuals of the LogitBoost algorithm.
- 版本:
- $Revision: 1.4 $
- 作者:
- Niels Landwehr
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildClassifier
(Instances data) Method not in usevoid
buildClassifier
(Instances data, double[][] dataZs, double[][] dataWs) Builds the split.boolean
checkModel
(int minNumInstances) Checks if there are at least 2 subsets that contain >= minNumInstances.double
Computes entropy gain for current split.Returns the revision string.final String
Returns name of splitting attribute (left side of condition).final String
Prints the condition satisfied by instances in a subset.final String
sourceExpression
(int index, Instances data) Method not in usefinal double[]
Method not in usefinal int
whichSubset
(Instance instance) Returns index of subset instance is assigned to.从类继承的方法 weka.classifiers.trees.j48.ClassifierSplitModel
checkModel, classifyInstance, classProb, classProbLaplace, clone, codingCost, distribution, dumpLabel, dumpModel, numSubsets, resetDistribution, sourceClass, split
-
构造器详细资料
-
ResidualSplit
public ResidualSplit(int attIndex) Creates a split object- 参数:
attIndex
- the index of the attribute to split on
-
-
方法详细资料
-
buildClassifier
Builds the split. Needs the Z/W values of LogitBoost for the set of instances.- 抛出:
Exception
-
entropyGain
Computes entropy gain for current split.- 抛出:
Exception
-
checkModel
public boolean checkModel(int minNumInstances) Checks if there are at least 2 subsets that contain >= minNumInstances. -
leftSide
Returns name of splitting attribute (left side of condition).- 指定者:
leftSide
在类中ClassifierSplitModel
- 参数:
data
- the data.
-
rightSide
Prints the condition satisfied by instances in a subset.- 指定者:
rightSide
在类中ClassifierSplitModel
-
whichSubset
从类复制的说明:ClassifierSplitModel
Returns index of subset instance is assigned to. Returns -1 if instance is assigned to more than one subset.- 指定者:
whichSubset
在类中ClassifierSplitModel
- 抛出:
Exception
- if something goes wrong
-
buildClassifier
Method not in use- 指定者:
buildClassifier
在类中ClassifierSplitModel
-
weights
Method not in use- 指定者:
weights
在类中ClassifierSplitModel
-
sourceExpression
Method not in use- 指定者:
sourceExpression
在类中ClassifierSplitModel
-
getRevision
Returns the revision string.- 返回:
- the revision
-