weka.classifiers.bayes
Class NaiveBayesUpdateable

java.lang.Object
  extended byweka.classifiers.Classifier
      extended byweka.classifiers.DistributionClassifier
          extended byweka.classifiers.bayes.NaiveBayes
              extended byweka.classifiers.bayes.NaiveBayesUpdateable
All Implemented Interfaces:
java.lang.Cloneable, OptionHandler, java.io.Serializable, UpdateableClassifier, WeightedInstancesHandler

public class NaiveBayesUpdateable
extends NaiveBayes
implements UpdateableClassifier

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class weka.classifiers.bayes.NaiveBayes
DEFAULT_NUM_PRECISION, m_ClassDistribution, m_Distributions, m_Instances, m_NumClasses, m_UseKernelEstimator
 
Constructor Summary
NaiveBayesUpdateable()
           
 
Method Summary
static void main(java.lang.String[] argv)
          Main method for testing this class.
 
Methods inherited from class weka.classifiers.bayes.NaiveBayes
buildClassifier, distributionForInstance, getOptions, getUseKernelEstimator, listOptions, setOptions, setUseKernelEstimator, toString, updateClassifier
 
Methods inherited from class weka.classifiers.DistributionClassifier
calculateEntropy, calculateLabeledInstanceMargin, calculateMargin, classifyInstance
 
Methods inherited from class weka.classifiers.Classifier
forName, makeCopies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface weka.classifiers.UpdateableClassifier
updateClassifier
 

Constructor Detail

NaiveBayesUpdateable

public NaiveBayesUpdateable()
Method Detail

main

public static void main(java.lang.String[] argv)
Main method for testing this class.

Parameters:
argv - the options