|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.trees.m5.Impurity
public final class Impurity
Class for handling the impurity values when spliting the instances
| Constructor Summary | |
|---|---|
Impurity(int partition,
int attribute,
Instances inst,
int k)
Constructs an Impurity object containing the impurity values of partitioning the instances using an attribute |
|
| Method Summary | |
|---|---|
java.lang.String |
getRevision()
Returns the revision string. |
void |
incremental(double value,
int type)
Incrementally computes the impurirty values |
java.lang.String |
toString()
Converts an Impurity object to a string |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Impurity(int partition,
int attribute,
Instances inst,
int k)
partition - the index of the last instance in the left subsetattribute - the attribute used in partitioninginst - instancesk - the order of the impurity; =1, the variance; =2, the stardard deviation; =k, the k-th order root of the variance| Method Detail |
|---|
public final java.lang.String toString()
toString in class java.lang.Object
public final void incremental(double value,
int type)
value - the incremental valuetype - if type=1, value will be added to the left subset; type=-1, to the right subset; type=0, initializespublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||