Multinomial Naive Bayes Formula. The multinomial naive bayes classifier is suitable for classification with discrete features e g word counts for text classification. P a p if a 1.
Class sklearn naive bayes multinomialnb alpha 1 0 fit prior true class prior none source naive bayes classifier for multinomial models. The gaussian assumption just described is by no means the only simple assumption that could be used to specify the generative distribution for each label. P word associatedclasscount word 1 vocabulary size total word count for class.
Laplacian smoothing will be used to determine the probability of a word.
P a p if a 1. Class sklearn naive bayes multinomialnb alpha 1 0 fit prior true class prior none source naive bayes classifier for multinomial models. Laplacian smoothing will be used to determine the probability of a word. P a q if a 0.
