|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.rules.part.ClassifierDecList
weka.classifiers.rules.part.C45PruneableDecList
Class for handling a partial tree structure pruned using C4.5's pruning heuristic.
Field Summary | |
private double |
CF
CF |
Fields inherited from class weka.classifiers.rules.part.ClassifierDecList |
indeX, m_isEmpty, m_isLeaf, m_localModel, m_minNumObj, m_sons, m_splitCrit, m_test, m_toSelectModel, m_train |
Constructor Summary | |
C45PruneableDecList(ModelSelection toSelectLocModel,
double cf,
int minNum)
Constructor for pruneable tree structure. |
Method Summary | |
void |
buildDecList(Instances data,
boolean leaf)
Builds the partial tree without hold out set. |
double |
getEstimatedErrorsForLeaf()
Computes estimated errors for leaf. |
private double |
getEstimatedErrorsForTree()
Computes estimated errors for tree. |
protected ClassifierDecList |
getNewDecList(Instances data,
boolean leaf)
Returns a newly created tree. |
protected void |
pruneEnd()
Prunes the end of the rule. |
Methods inherited from class weka.classifiers.rules.part.ClassifierDecList |
buildRule, chooseIndex, chooseLastIndex, classifyInstance, cleanup, distributionForInstance, getSizeOfBranch, localModel, son, toString, weight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private double CF
Constructor Detail |
public C45PruneableDecList(ModelSelection toSelectLocModel, double cf, int minNum) throws java.lang.Exception
toSelectLocModel
- selection method for local splitting modelcf
- the confidence factor for pruningminNum
- the minimum number of objects in a leaf
java.lang.Exception
- if something goes wrongMethod Detail |
public void buildDecList(Instances data, boolean leaf) throws java.lang.Exception
buildDecList
in class ClassifierDecList
java.lang.Exception
- if something goes wrongprotected ClassifierDecList getNewDecList(Instances data, boolean leaf) throws java.lang.Exception
getNewDecList
in class ClassifierDecList
java.lang.Exception
- if something goes wrongprotected void pruneEnd()
private double getEstimatedErrorsForTree()
public double getEstimatedErrorsForLeaf()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |