mark.nlp.weka
Class NBBernoulli

java.lang.Object
  |
  +--weka.classifiers.Classifier
        |
        +--mark.nlp.weka.NaiveBayes
              |
              +--mark.nlp.weka.NBBernoulli
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, weka.core.WeightedInstancesHandler

public class NBBernoulli
extends NaiveBayes

A Bernoulli weka NaiveBayes classifier.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class mark.nlp.weka.NaiveBayes
fConditionals, fNumAtts, fNumCats, fPriors, fSmooth, fUsePriors
 
Constructor Summary
NBBernoulli()
           
 
Method Summary
protected  double filterAttributeVal(double attVal)
           
protected  void finishConditionals()
           
protected  void finishScores(double[] scores, weka.core.Instance instance)
           
static void main(java.lang.String[] argv)
          Weka test code.
protected  void updateZeroCounts(double[] scores, int first, int last)
           
 
Methods inherited from class mark.nlp.weka.NaiveBayes
buildClassifier, classifyInstance
 
Methods inherited from class weka.classifiers.Classifier
forName, makeCopies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NBBernoulli

public NBBernoulli()
Method Detail

filterAttributeVal

protected double filterAttributeVal(double attVal)
Specified by:
filterAttributeVal in class NaiveBayes

finishConditionals

protected void finishConditionals()
Specified by:
finishConditionals in class NaiveBayes

updateZeroCounts

protected void updateZeroCounts(double[] scores,
                                int first,
                                int last)

finishScores

protected void finishScores(double[] scores,
                            weka.core.Instance instance)
                     throws java.lang.Exception
Specified by:
finishScores in class NaiveBayes
java.lang.Exception

main

public static void main(java.lang.String[] argv)
Weka test code.