|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.bayes.net.estimate.BayesNetEstimator
weka.classifiers.bayes.net.estimate.SimpleEstimator
weka.classifiers.bayes.net.estimate.BMAEstimator
public class BMAEstimator
BMAEstimator estimates conditional probability tables of a Bayes network using Bayes Model Averaging (BMA).
| Constructor Summary | |
|---|---|
BMAEstimator()
|
|
| Method Summary | |
|---|---|
void |
estimateCPTs(BayesNet bayesNet)
estimateCPTs estimates the conditional probability tables for the Bayes Net using the network structure. |
java.lang.String[] |
getOptions()
Gets the current settings of the classifier. |
void |
initCPTs(BayesNet bayesNet)
initCPTs reserves space for CPTs and set all counts to zero |
boolean |
isUseK2Prior()
|
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
void |
setOptions(java.lang.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. |
| Methods inherited from class weka.classifiers.bayes.net.estimate.SimpleEstimator |
|---|
distributionForInstance |
| Methods inherited from class weka.classifiers.bayes.net.estimate.BayesNetEstimator |
|---|
alphaTipText, getAlpha, globalInfo, setAlpha |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BMAEstimator()
| Method Detail |
|---|
public void estimateCPTs(BayesNet bayesNet)
throws java.lang.Exception
estimateCPTs in class SimpleEstimatorjava.lang.Exception
public void updateClassifier(BayesNet bayesNet,
Instance instance)
throws java.lang.Exception
updateClassifier in class SimpleEstimatorinstance - the new training instance to include in the model
java.lang.Exception - if the instance could not be incorporated in
the model.
public void initCPTs(BayesNet bayesNet)
throws java.lang.Exception
initCPTs in class SimpleEstimatorjava.lang.Exceptionpublic boolean isUseK2Prior()
public void setUseK2Prior(boolean bUseK2Prior)
bUseK2Prior - The bUseK2Prior to setpublic java.util.Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class BayesNetEstimator
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandlersetOptions in class BayesNetEstimatoroptions - the list of options as an array of strings
java.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class BayesNetEstimator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||