public class SimpleEstimator extends BayesNetEstimator
-A <alpha> Initial count (alpha)
| Constructor and Description |
|---|
SimpleEstimator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this object
|
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.
|
alphaTipText, getAlpha, getOptions, listOptions, setAlpha, setOptionsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeCopypublic java.lang.String globalInfo()
globalInfo in class BayesNetEstimatorpublic void estimateCPTs(BayesNet bayesNet) throws java.lang.Exception
estimateCPTs in class BayesNetEstimatorbayesNet - the bayes net to usejava.lang.Exception - if something goes wrongpublic void updateClassifier(BayesNet bayesNet, Instance instance) throws java.lang.Exception
updateClassifier in class BayesNetEstimatorbayesNet - the bayes net to useinstance - the new training instance to include in the modeljava.lang.Exception - if the instance could not be incorporated in the model.public void initCPTs(BayesNet bayesNet) throws java.lang.Exception
initCPTs in class BayesNetEstimatorbayesNet - the bayes net to usejava.lang.Exception - if something goes wrongpublic double[] distributionForInstance(BayesNet bayesNet, Instance instance) throws java.lang.Exception
distributionForInstance in class BayesNetEstimatorbayesNet - the bayes net to useinstance - the instance to be classifiedjava.lang.Exception - if there is a problem generating the predictionpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class BayesNetEstimator