|
|||||||||||
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
SimpleEstimator is used for estimating the conditional probability tables of a Bayes network once the structure has been learned. Estimates probabilities directly from data.
Constructor Summary | |
SimpleEstimator()
|
Method Summary | |
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. |
void |
initCPTs(BayesNet bayesNet)
initCPTs reserves space for CPTs and set all counts to zero |
void |
updateClassifier(BayesNet bayesNet,
Instance instance)
Updates the classifier with the given instance. |
Methods inherited from class weka.classifiers.bayes.net.estimate.BayesNetEstimator |
alphaTipText, getAlpha, getOptions, globalInfo, listOptions, setAlpha, setOptions |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleEstimator()
Method Detail |
public void estimateCPTs(BayesNet bayesNet) throws java.lang.Exception
estimateCPTs
in class BayesNetEstimator
java.lang.Exception
public void updateClassifier(BayesNet bayesNet, Instance instance) throws java.lang.Exception
updateClassifier
in class BayesNetEstimator
instance
- 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 BayesNetEstimator
java.lang.Exception
public double[] distributionForInstance(BayesNet bayesNet, Instance instance) throws java.lang.Exception
distributionForInstance
in class BayesNetEstimator
instance
- the instance to be classified
java.lang.Exception
- if there is a problem generating the prediction
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |