类 PruneableClassifierTree
java.lang.Object
weka.classifiers.trees.j48.ClassifierTree
weka.classifiers.trees.j48.PruneableClassifierTree
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,Drawable
,RevisionHandler
Class for handling a tree structure that can
be pruned using a pruning set.
- 版本:
- $Revision: 8985 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- 另请参阅:
-
字段概要
从接口继承的字段 weka.core.Drawable
BayesNet, Newick, NOT_DRAWABLE, TREE
-
构造器概要
构造器构造器说明PruneableClassifierTree
(ModelSelection toSelectLocModel, boolean pruneTree, int num, boolean cleanup, int seed) Constructor for pruneable tree structure. -
方法概要
修饰符和类型方法说明void
buildClassifier
(Instances data) Method for building a pruneable classifier tree.Returns default capabilities of the classifier tree.Returns the revision string.void
prune()
Prunes a tree.从类继承的方法 weka.classifiers.trees.j48.ClassifierTree
assignIDs, buildTree, buildTree, classifyInstance, cleanup, distributionForInstance, graph, graphType, numLeaves, numNodes, prefix, toSource, toString
-
构造器详细资料
-
PruneableClassifierTree
public PruneableClassifierTree(ModelSelection toSelectLocModel, boolean pruneTree, int num, boolean cleanup, int seed) throws Exception Constructor for pruneable tree structure. Stores reference to associated training data at each node.- 参数:
toSelectLocModel
- selection method for local splitting modelpruneTree
- true if the tree is to be prunednum
- number of subsets of equal sizecleanup
-seed
- the seed value to use- 抛出:
Exception
- if something goes wrong
-
-
方法详细资料
-
getCapabilities
Returns default capabilities of the classifier tree.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中ClassifierTree
- 返回:
- the capabilities of this classifier tree
- 另请参阅:
-
buildClassifier
Method for building a pruneable classifier tree.- 覆盖:
buildClassifier
在类中ClassifierTree
- 参数:
data
- the data to build the tree from- 抛出:
Exception
- if tree can't be built successfully
-
prune
Prunes a tree.- 抛出:
Exception
- if tree can't be pruned successfully
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中ClassifierTree
- 返回:
- the revision
-