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.
|
String |
getRevision()
Returns the revision string.
|
buildRule, chooseIndex, chooseLastIndex, classifyInstance, cleanup, distributionForInstance, toString, weight
public C45PruneableDecList(ModelSelection toSelectLocModel, double cf, int minNum) throws Exception
toSelectLocModel
- selection method for local splitting modelcf
- the confidence factor for pruningminNum
- the minimum number of objects in a leafException
- if something goes wrongpublic void buildDecList(Instances data, boolean leaf) throws Exception
buildDecList
in class ClassifierDecList
Exception
- if something goes wrongpublic double getEstimatedErrorsForLeaf()
public String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ClassifierDecList
Copyright © 2020 University of Waikato, Hamilton, NZ. All rights reserved.