类 MultiNomialBMAEstimator
java.lang.Object
weka.classifiers.bayes.net.estimate.BayesNetEstimator
weka.classifiers.bayes.net.estimate.MultiNomialBMAEstimator
- 所有已实现的接口:
Serializable
,OptionHandler
,RevisionHandler
Multinomial BMA Estimator.
Valid options are:
-k2 Whether to use K2 prior.
-A <alpha> Initial count (alpha)
- 版本:
- $Revision: 1.8 $
- 作者:
- Remco Bouckaert (rrb@xm.co.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明double[]
distributionForInstance
(BayesNet bayesNet, Instance instance) Calculates the class membership probabilities for the given test instance.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 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.BayesNetEstimator
alphaTipText, getAlpha, setAlpha
-
构造器详细资料
-
MultiNomialBMAEstimator
public MultiNomialBMAEstimator()
-
-
方法详细资料
-
globalInfo
Returns a string describing this object- 覆盖:
globalInfo
在类中BayesNetEstimator
- 返回:
- 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
在类中BayesNetEstimator
- 参数:
bayesNet
- the bayes net to use- 抛出:
Exception
- if number of parents doesn't fit (more than 1)
-
updateClassifier
Updates the classifier with the given instance.- 覆盖:
updateClassifier
在类中BayesNetEstimator
- 参数:
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
在类中BayesNetEstimator
- 参数:
bayesNet
- the bayes net to use- 抛出:
Exception
- doesn't apply
-
isUseK2Prior
public boolean isUseK2Prior()- 返回:
- boolean
-
setUseK2Prior
public void setUseK2Prior(boolean bUseK2Prior) Sets the UseK2Prior.- 参数:
bUseK2Prior
- The bUseK2Prior to set
-
distributionForInstance
Calculates the class membership probabilities for the given test instance.- 覆盖:
distributionForInstance
在类中BayesNetEstimator
- 参数:
bayesNet
- the bayes net to useinstance
- the instance to be classified- 返回:
- predicted class probability distribution
- 抛出:
Exception
- if there is a problem generating the prediction
-
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
在类中BayesNetEstimator
- 返回:
- the revision
-