Package weka.classifiers.rules.part
Class C45PruneableDecList
java.lang.Object
weka.classifiers.rules.part.ClassifierDecList
weka.classifiers.rules.part.C45PruneableDecList
- All Implemented Interfaces:
Serializable
,RevisionHandler
Class for handling a partial tree structure pruned using C4.5's pruning
heuristic.
- Version:
- $Revision: 10153 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
ConstructorDescriptionC45PruneableDecList
(ModelSelection toSelectLocModel, double cf, int minNum) Constructor for pruneable tree structure. -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildDecList
(Instances data, boolean leaf) Builds the partial tree without hold out set.double
Computes estimated errors for leaf.Returns the revision string.Methods inherited from class weka.classifiers.rules.part.ClassifierDecList
buildRule, chooseIndex, chooseLastIndex, classifyInstance, cleanup, distributionForInstance, toString, weight
-
Constructor Details
-
C45PruneableDecList
Constructor for pruneable tree structure. Stores reference to associated training data at each node.- Parameters:
toSelectLocModel
- selection method for local splitting modelcf
- the confidence factor for pruningminNum
- the minimum number of objects in a leaf- Throws:
Exception
- if something goes wrong
-
-
Method Details
-
buildDecList
Builds the partial tree without hold out set.- Overrides:
buildDecList
in classClassifierDecList
- Throws:
Exception
- if something goes wrong
-
getEstimatedErrorsForLeaf
public double getEstimatedErrorsForLeaf()Computes estimated errors for leaf. -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classClassifierDecList
- Returns:
- the revision
-