类 NoSplit
java.lang.Object
weka.classifiers.trees.j48.ClassifierSplitModel
weka.classifiers.trees.j48.NoSplit
- 所有已实现的接口:
Serializable
,Cloneable
,RevisionHandler
Class implementing a "no-split"-split.
- 版本:
- $Revision: 1.9 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final void
buildClassifier
(Instances instances) Creates a "no-split"-split for a given set of instances.Returns the revision string.final String
Does nothing because no condition has to be satisfied.final String
Does nothing because no condition has to be satisfied.final String
sourceExpression
(int index, Instances data) Returns a string containing java source code equivalent to the test made at this node.final double[]
Always returns null because there is only one subset.final int
whichSubset
(Instance instance) Always returns 0 because only there is only one subset.从类继承的方法 weka.classifiers.trees.j48.ClassifierSplitModel
checkModel, classifyInstance, classProb, classProbLaplace, clone, codingCost, distribution, dumpLabel, dumpModel, numSubsets, resetDistribution, sourceClass, split
-
构造器详细资料
-
NoSplit
Creates "no-split"-split for given distribution.
-
-
方法详细资料
-
buildClassifier
Creates a "no-split"-split for a given set of instances.- 指定者:
buildClassifier
在类中ClassifierSplitModel
- 抛出:
Exception
- if split can't be built successfully
-
whichSubset
Always returns 0 because only there is only one subset.- 指定者:
whichSubset
在类中ClassifierSplitModel
-
weights
Always returns null because there is only one subset.- 指定者:
weights
在类中ClassifierSplitModel
-
leftSide
Does nothing because no condition has to be satisfied.- 指定者:
leftSide
在类中ClassifierSplitModel
- 参数:
instances
- the data.
-
rightSide
Does nothing because no condition has to be satisfied.- 指定者:
rightSide
在类中ClassifierSplitModel
-
sourceExpression
Returns a string containing java source code equivalent to the test made at this node. The instance being tested is called "i".- 指定者:
sourceExpression
在类中ClassifierSplitModel
- 参数:
index
- index of the nominal value testeddata
- the data containing instance structure info- 返回:
- a value of type 'String'
-
getRevision
Returns the revision string.- 返回:
- the revision
-