public class MultiNomialBMAEstimator extends BayesNetEstimator
-k2 Whether to use K2 prior.
-A <alpha> Initial count (alpha)
| Constructor and Description |
|---|
MultiNomialBMAEstimator() |
| 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[] |
getOptions()
Gets the current settings of the classifier.
|
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
|
boolean |
isUseK2Prior() |
Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options
|
void |
setOptions(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.
|
alphaTipText, getAlpha, setAlphapublic String globalInfo()
globalInfo in class BayesNetEstimatorpublic void estimateCPTs(BayesNet bayesNet) throws Exception
estimateCPTs in class BayesNetEstimatorbayesNet - the bayes net to useException - if number of parents doesn't fit (more than 1)public void updateClassifier(BayesNet bayesNet, Instance instance) throws Exception
updateClassifier in class BayesNetEstimatorbayesNet - 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 BayesNetEstimatorbayesNet - the bayes net to useException - doesn't applypublic boolean isUseK2Prior()
public void setUseK2Prior(boolean bUseK2Prior)
bUseK2Prior - The bUseK2Prior to setpublic double[] distributionForInstance(BayesNet bayesNet, Instance instance) throws Exception
distributionForInstance in class BayesNetEstimatorbayesNet - the bayes net to useinstance - the instance to be classifiedException - if there is a problem generating the predictionpublic Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class BayesNetEstimatorpublic void setOptions(String[] options) throws Exception
-k2 Whether to use K2 prior.
-A <alpha> Initial count (alpha)
setOptions in interface OptionHandlersetOptions in class BayesNetEstimatoroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class BayesNetEstimatorpublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class BayesNetEstimatorCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.