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.
|
String |
getRevision()
Returns the revision string.
|
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, setOptions
public String globalInfo()
globalInfo
in class BayesNetEstimator
public void estimateCPTs(BayesNet bayesNet) throws Exception
estimateCPTs
in class BayesNetEstimator
bayesNet
- the bayes net to useException
- if something goes wrongpublic void updateClassifier(BayesNet bayesNet, Instance instance) throws Exception
updateClassifier
in class BayesNetEstimator
bayesNet
- the bayes net to useinstance
- the new training instance to include in the modelException
- if the instance could not be incorporated in
the model.public void initCPTs(BayesNet bayesNet) throws Exception
initCPTs
in class BayesNetEstimator
bayesNet
- the bayes net to useException
- if something goes wrongpublic double[] distributionForInstance(BayesNet bayesNet, Instance instance) throws Exception
distributionForInstance
in class BayesNetEstimator
bayesNet
- the bayes net to useinstance
- the instance to be classifiedException
- if there is a problem generating the predictionpublic String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class BayesNetEstimator
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.