public class C45PruneableDecList extends ClassifierDecList
Constructor and Description |
---|
C45PruneableDecList(ModelSelection toSelectLocModel,
double cf,
int minNum)
Constructor for pruneable tree structure.
|
Modifier and Type | Method and Description |
---|---|
void |
buildDecList(Instances data,
boolean leaf)
Builds the partial tree without hold out set.
|
double |
getEstimatedErrorsForLeaf()
Computes estimated errors for leaf.
|
java.lang.String |
getRevision()
Returns the revision string.
|
buildRule, chooseIndex, chooseLastIndex, classifyInstance, cleanup, distributionForInstance, toString, weight
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 leafjava.lang.Exception
- if something goes wrongpublic void buildDecList(Instances data, boolean leaf) throws java.lang.Exception
buildDecList
in class ClassifierDecList
java.lang.Exception
- if something goes wrongpublic double getEstimatedErrorsForLeaf()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ClassifierDecList