|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.trees.m5.CorrelationSplitInfo
Finds split points using correlation.
Field Summary | |
private int |
m_first
the first instance |
private int |
m_last
the last instance |
private double |
m_maxImpurity
the maximum impurity reduction |
private int |
m_number
the number of instances |
private int |
m_position
|
private int |
m_splitAttr
the attribute being tested |
private double |
m_splitValue
the best value on which to split |
Constructor Summary | |
CorrelationSplitInfo(int low,
int high,
int attr)
Constructs an object which contains the split information |
Method Summary | |
void |
attrSplit(int attr,
Instances inst)
Finds the best splitting point for an attribute in the instances |
SplitEvaluate |
copy()
Makes a copy of this CorrelationSplitInfo object |
void |
initialize(int low,
int high,
int attr)
Resets the object of split information |
double |
maxImpurity()
Returns the impurity of this split |
int |
position()
Returns the position of the split in the sorted values. -1 indicates that a split could not be found. |
int |
splitAttr()
Returns the attribute used in this split |
double |
splitValue()
Returns the split value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int m_first
private int m_last
private int m_position
private double m_maxImpurity
private int m_splitAttr
private double m_splitValue
private int m_number
Constructor Detail |
public CorrelationSplitInfo(int low, int high, int attr)
low
- the index of the first instancehigh
- the index of the last instanceattr
- an attributeMethod Detail |
public final SplitEvaluate copy() throws java.lang.Exception
copy
in interface SplitEvaluate
java.lang.Exception
public final void initialize(int low, int high, int attr)
low
- the index of the first instancehigh
- the index of the last instanceattr
- the attributepublic final void attrSplit(int attr, Instances inst) throws java.lang.Exception
attrSplit
in interface SplitEvaluate
attr
- the splitting attributeinst
- the instances
java.lang.Exception
- if something goes wrongpublic double maxImpurity()
maxImpurity
in interface SplitEvaluate
public int splitAttr()
splitAttr
in interface SplitEvaluate
public int position()
position
in interface SplitEvaluate
int
valuepublic double splitValue()
splitValue
in interface SplitEvaluate
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |