mark.nlp.weka
Class NBMultinomial
java.lang.Object
|
+--weka.classifiers.Classifier
|
+--mark.nlp.weka.NaiveBayes
|
+--mark.nlp.weka.NBMultinomial
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable, weka.core.WeightedInstancesHandler
- Direct Known Subclasses:
- NBThere
- public class NBMultinomial
- extends NaiveBayes
A Multinomial 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 |
NBMultinomial
public NBMultinomial()
filterAttributeVal
protected double filterAttributeVal(double attVal)
- Specified by:
filterAttributeVal in class NaiveBayes
finishConditionals
protected void finishConditionals()
- Specified by:
finishConditionals in class NaiveBayes
filterScore
protected double filterScore(double attVal)
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.