类 CorrelationSplitInfo
java.lang.Object
weka.classifiers.trees.m5.CorrelationSplitInfo
- 所有已实现的接口:
Serializable
,Cloneable
,SplitEvaluate
,RevisionHandler
public final class CorrelationSplitInfo
extends Object
implements Cloneable, Serializable, SplitEvaluate, RevisionHandler
Finds split points using correlation.
- 版本:
- $Revision: 1.4 $
- 作者:
- Mark Hall (mhall@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器构造器说明CorrelationSplitInfo
(int low, int high, int attr) Constructs an object which contains the split information -
方法概要
修饰符和类型方法说明final void
Finds the best splitting point for an attribute in the instancesfinal SplitEvaluate
copy()
Makes a copy of this CorrelationSplitInfo objectReturns the revision string.final void
initialize
(int low, int high, int attr) Resets the object of split informationdouble
Returns the impurity of this splitint
position()
Returns the position of the split in the sorted values.int
Returns the attribute used in this splitdouble
Returns the split value
-
构造器详细资料
-
CorrelationSplitInfo
public CorrelationSplitInfo(int low, int high, int attr) Constructs an object which contains the split information- 参数:
low
- the index of the first instancehigh
- the index of the last instanceattr
- an attribute
-
-
方法详细资料
-
copy
Makes a copy of this CorrelationSplitInfo object- 指定者:
copy
在接口中SplitEvaluate
- 返回:
- a copy of the object
- 抛出:
Exception
-
initialize
public final void initialize(int low, int high, int attr) Resets the object of split information- 参数:
low
- the index of the first instancehigh
- the index of the last instanceattr
- the attribute
-
attrSplit
Finds the best splitting point for an attribute in the instances- 指定者:
attrSplit
在接口中SplitEvaluate
- 参数:
attr
- the splitting attributeinst
- the instances- 抛出:
Exception
- if something goes wrong
-
maxImpurity
public double maxImpurity()Returns the impurity of this split- 指定者:
maxImpurity
在接口中SplitEvaluate
- 返回:
- the impurity of this split
-
splitAttr
public int splitAttr()Returns the attribute used in this split- 指定者:
splitAttr
在接口中SplitEvaluate
- 返回:
- the attribute used in this split
-
position
public int position()Returns the position of the split in the sorted values. -1 indicates that a split could not be found.- 指定者:
position
在接口中SplitEvaluate
- 返回:
- an
int
value
-
splitValue
public double splitValue()Returns the split value- 指定者:
splitValue
在接口中SplitEvaluate
- 返回:
- the split value
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-