类 BMAEstimator
java.lang.Object
weka.classifiers.bayes.net.estimate.BayesNetEstimator
weka.classifiers.bayes.net.estimate.SimpleEstimator
weka.classifiers.bayes.net.estimate.BMAEstimator
- 所有已实现的接口:
Serializable
,OptionHandler
,RevisionHandler
BMAEstimator estimates conditional probability tables of a Bayes network using Bayes Model Averaging (BMA).
Valid options are:
-k2 Whether to use K2 prior.
-A <alpha> Initial count (alpha)
- 版本:
- $Revision: 1.8 $
- 作者:
- Remco Bouckaert (rrb@xm.co.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
estimateCPTs
(BayesNet bayesNet) estimateCPTs estimates the conditional probability tables for the Bayes Net using the network structure.String[]
Gets the current settings of the classifier.Returns the revision string.Returns a string describing this objectvoid
initCPTs reserves space for CPTs and set all counts to zeroboolean
Returns whether K2 prior is usedReturns an enumeration describing the available optionsvoid
setOptions
(String[] options) Parses a given list of options.void
setUseK2Prior
(boolean bUseK2Prior) Sets the UseK2Prior.void
updateClassifier
(BayesNet bayesNet, Instance instance) Updates the classifier with the given instance.从类继承的方法 weka.classifiers.bayes.net.estimate.SimpleEstimator
distributionForInstance
从类继承的方法 weka.classifiers.bayes.net.estimate.BayesNetEstimator
alphaTipText, getAlpha, setAlpha
-
构造器详细资料
-
BMAEstimator
public BMAEstimator()
-
-
方法详细资料
-
globalInfo
Returns a string describing this object- 覆盖:
globalInfo
在类中SimpleEstimator
- 返回:
- a description of the classifier suitable for displaying in the explorer/experimenter gui
-
estimateCPTs
estimateCPTs estimates the conditional probability tables for the Bayes Net using the network structure.- 覆盖:
estimateCPTs
在类中SimpleEstimator
- 参数:
bayesNet
- the bayes net to use- 抛出:
Exception
- if an error occurs
-
updateClassifier
Updates the classifier with the given instance.- 覆盖:
updateClassifier
在类中SimpleEstimator
- 参数:
bayesNet
- the bayes net to useinstance
- the new training instance to include in the model- 抛出:
Exception
- if the instance could not be incorporated in the model.
-
initCPTs
initCPTs reserves space for CPTs and set all counts to zero- 覆盖:
initCPTs
在类中SimpleEstimator
- 参数:
bayesNet
- the bayes net to use- 抛出:
Exception
- if something goes wrong
-
isUseK2Prior
public boolean isUseK2Prior()Returns whether K2 prior is used- 返回:
- true if K2 prior is used
-
setUseK2Prior
public void setUseK2Prior(boolean bUseK2Prior) Sets the UseK2Prior.- 参数:
bUseK2Prior
- The bUseK2Prior to set
-
listOptions
Returns an enumeration describing the available options- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中BayesNetEstimator
- 返回:
- an enumeration of all the available options
-
setOptions
Parses a given list of options. Valid options are:-k2 Whether to use K2 prior.
-A <alpha> Initial count (alpha)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中BayesNetEstimator
- 参数:
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
在类中BayesNetEstimator
- 返回:
- an array of strings suitable for passing to setOptions
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中SimpleEstimator
- 返回:
- the revision
-