|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.trees.m5.CorrelationSplitInfo
public final class CorrelationSplitInfo
Finds split points using correlation.
| 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 |
java.lang.String |
getRevision()
Returns the revision string. |
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. |
int |
splitAttr()
Returns the attribute used in this split |
double |
splitValue()
Returns the split value |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CorrelationSplitInfo(int low,
int high,
int attr)
low - the index of the first instancehigh - the index of the last instanceattr - an attribute| Method Detail |
|---|
public final SplitEvaluate copy()
throws java.lang.Exception
copy in interface SplitEvaluatejava.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 attribute
public final void attrSplit(int attr,
Instances inst)
throws java.lang.Exception
attrSplit in interface SplitEvaluateattr - the splitting attributeinst - the instances
java.lang.Exception - if something goes wrongpublic double maxImpurity()
maxImpurity in interface SplitEvaluatepublic int splitAttr()
splitAttr in interface SplitEvaluatepublic int position()
position in interface SplitEvaluateint valuepublic double splitValue()
splitValue in interface SplitEvaluatepublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||