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
| 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 |
NBBernoulli
public NBBernoulli()
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.