类 SimpleEstimator
java.lang.Object
weka.classifiers.bayes.net.estimate.BayesNetEstimator
weka.classifiers.bayes.net.estimate.SimpleEstimator
- 所有已实现的接口:
Serializable
,OptionHandler
,RevisionHandler
- 直接已知子类:
BMAEstimator
SimpleEstimator is used for estimating the conditional probability tables of a Bayes network once the structure has been learned. Estimates probabilities directly from data.
Valid options are:
-A <alpha> Initial count (alpha)
- 版本:
- $Revision: 1.6 $
- 作者:
- 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.Returns the revision string.Returns a string describing this objectvoid
initCPTs reserves space for CPTs and set all counts to zerovoid
updateClassifier
(BayesNet bayesNet, Instance instance) Updates the classifier with the given instance.从类继承的方法 weka.classifiers.bayes.net.estimate.BayesNetEstimator
alphaTipText, getAlpha, getOptions, listOptions, setAlpha, setOptions
-
构造器详细资料
-
SimpleEstimator
public SimpleEstimator()
-
-
方法详细资料
-
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 something goes wrong
-
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
- if something goes wrong
-
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
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中BayesNetEstimator
- 返回:
- the revision
-