Package weka.classifiers.rules.part
Class PruneableDecList
java.lang.Object
weka.classifiers.rules.part.ClassifierDecList
weka.classifiers.rules.part.PruneableDecList
- All Implemented Interfaces:
Serializable
,RevisionHandler
Class for handling a partial tree structure that can be pruned using a
pruning set.
- Version:
- $Revision: 10153 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
ConstructorDescriptionPruneableDecList
(ModelSelection toSelectLocModel, int minNum) Constructor for pruneable partial tree structure. -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildDecList
(Instances train, Instances test, boolean leaf) Builds the partial tree with hold out setvoid
Method for building a pruned partial tree.Returns the revision string.Methods inherited from class weka.classifiers.rules.part.ClassifierDecList
buildDecList, buildRule, chooseIndex, chooseLastIndex, classifyInstance, cleanup, distributionForInstance, toString, weight
-
Constructor Details
-
PruneableDecList
Constructor for pruneable partial tree structure.- Parameters:
toSelectLocModel
- selection method for local splitting modelminNum
- minimum number of objects in leaf
-
-
Method Details
-
buildRule
Method for building a pruned partial tree.- Throws:
Exception
- if tree can't be built successfully
-
buildDecList
Builds the partial tree with hold out set- Throws:
Exception
- if something goes wrong
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classClassifierDecList
- Returns:
- the revision
-