|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--weka.classifiers.bayes.NaiveBayes | +--weka.classifiers.bayes.NaiveBayesUpdateable
Class for a Naive Bayes classifier using estimator classes. This is the updateable version of NaiveBayes. This classifier will use a default precision of 0.1 for numeric attributes when buildClassifier is called with zero training instances.
For more information on Naive Bayes classifiers, see
George H. John and Pat Langley (1995). Estimating Continuous Distributions in Bayesian Classifiers. Proceedings of the Eleventh Conference on Uncertainty in Artificial Intelligence. pp. 338-345. Morgan Kaufmann, San Mateo.
Valid options are:
-K
Use kernel estimation for modelling numeric attributes rather than
a single normal distribution.
Constructor Summary | |
NaiveBayesUpdateable()
|
Method Summary | |
java.lang.String |
globalInfo()
Returns a string describing this classifier |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
void |
setUseSupervisedDiscretization(boolean newblah)
Set whether supervised discretization is to be used. |
Methods inherited from class weka.classifiers.bayes.NaiveBayes |
buildClassifier, distributionForInstance, getOptions, getUseKernelEstimator, getUseSupervisedDiscretization, listOptions, setOptions, setUseKernelEstimator, toString, updateClassifier, useKernelEstimatorTipText, useSupervisedDiscretizationTipText |
Methods inherited from class weka.classifiers.Classifier |
classifyInstance, debugTipText, forName, getDebug, makeCopies, setDebug |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface weka.classifiers.UpdateableClassifier |
updateClassifier |
Constructor Detail |
public NaiveBayesUpdateable()
Method Detail |
public java.lang.String globalInfo()
globalInfo
in class NaiveBayes
public void setUseSupervisedDiscretization(boolean newblah)
setUseSupervisedDiscretization
in class NaiveBayes
newblah
- true if supervised discretization is to be used.public static void main(java.lang.String[] argv)
argv
- the options
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London