|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.trees.m5.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 | |
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 varianceMethod 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, initializes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London