weka.classifiers.bayes
Class NaiveBayesSimpleSoft

java.lang.Object
  extended byweka.classifiers.Classifier
      extended byweka.classifiers.DistributionClassifier
          extended byweka.classifiers.bayes.NaiveBayesSimple
              extended byweka.classifiers.bayes.NaiveBayesSimpleSoft
All Implemented Interfaces:
java.lang.Cloneable, OptionHandler, java.io.Serializable, SoftClassifier, WeightedInstancesHandler

public class NaiveBayesSimpleSoft
extends NaiveBayesSimple
implements SoftClassifier, OptionHandler, WeightedInstancesHandler

Version of NaiveBayesSimple that supports training on SoftClassifiedInstances and WeightedInstances for use with SemiSupEM

See Also:
Serialized Form

Field Summary
 
Fields inherited from class weka.classifiers.bayes.NaiveBayesSimple
m_Counts, m_Devs, m_Instances, m_m, m_Means, m_minStdDev, m_Priors, NORM_CONST
 
Constructor Summary
NaiveBayesSimpleSoft()
           
 
Method Summary
 void buildClassifier(SoftClassifiedInstances instances)
          Generates the classifier.
 
Methods inherited from class weka.classifiers.bayes.NaiveBayesSimple
buildClassifier, distributionForInstance, getM, getMinStdDev, getOptions, globalInfo, listOptions, main, minStdDevTipText, mTipText, normalDens, normalizeLogs, resetOptions, setM, setMinStdDev, setOptions, toString, unNormalizedDistributionForInstance
 
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.SoftClassifier
unNormalizedDistributionForInstance
 
Methods inherited from interface weka.core.OptionHandler
getOptions, listOptions, setOptions
 

Constructor Detail

NaiveBayesSimpleSoft

public NaiveBayesSimpleSoft()
Method Detail

buildClassifier

public void buildClassifier(SoftClassifiedInstances instances)
                     throws java.lang.Exception
Generates the classifier.

Specified by:
buildClassifier in interface SoftClassifier
Parameters:
instances - set of instances serving as training data
Throws:
java.lang.Exception - if the classifier has not been generated successfully