程序包 weka.classifiers
类 RandomizableSingleClassifierEnhancer
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.SingleClassifierEnhancer
weka.classifiers.RandomizableSingleClassifierEnhancer
- 所有已实现的接口:
Serializable
,Cloneable
,CapabilitiesHandler
,OptionHandler
,Randomizable
,RevisionHandler
- 直接已知子类:
ClassBalancedND
,CostSensitiveClassifier
,CVParameterSelection
,Dagging
,DataNearBalancedND
,GridSearch
,MetaCost
,MultiClassClassifier
,ND
,RacedIncrementalLogitBoost
,ThresholdSelector
public abstract class RandomizableSingleClassifierEnhancer
extends SingleClassifierEnhancer
implements Randomizable
Abstract utility class for handling settings common to randomizable
meta classifiers that build an ensemble from a single base learner.
- 版本:
- $Revision: 1.4 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明String[]
Gets the current settings of the classifier.int
getSeed()
Gets the seed for the random number generationsReturns an enumeration describing the available options.Returns the tip text for this propertyvoid
setOptions
(String[] options) Parses a given list of options.void
setSeed
(int seed) Set the seed for random number generation.从类继承的方法 weka.classifiers.SingleClassifierEnhancer
classifierTipText, getCapabilities, getClassifier, setClassifier
从类继承的方法 weka.classifiers.Classifier
buildClassifier, classifyInstance, debugTipText, distributionForInstance, forName, getDebug, getRevision, makeCopies, makeCopy, setDebug
-
构造器详细资料
-
RandomizableSingleClassifierEnhancer
public RandomizableSingleClassifierEnhancer()
-
-
方法详细资料
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中SingleClassifierEnhancer
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-W classname
Specify the full class name of the base learner.-I num
Set the number of iterations (default 10).-S num
Set the random number seed (default 1).Options after -- are passed to the designated classifier.
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中SingleClassifierEnhancer
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the classifier.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中SingleClassifierEnhancer
- 返回:
- an array of strings suitable for passing to setOptions
-
seedTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setSeed
public void setSeed(int seed) Set the seed for random number generation.- 指定者:
setSeed
在接口中Randomizable
- 参数:
seed
- the seed
-
getSeed
public int getSeed()Gets the seed for the random number generations- 指定者:
getSeed
在接口中Randomizable
- 返回:
- the seed for the random number generation
-