I have been looking for a multinomial naive Bayes classifier on CRAN, and so far all I can come up with is the binomial implementation in package e1071
. Does anyone know of a package that has a multinomial Bayes classifier?
Asked
Active
Viewed 4,986 times
6

smci
- 32,567
- 20
- 113
- 146

Timothy P. Jurka
- 918
- 1
- 11
- 21
-
2Have you tried `NaiveBayes()` in the `klaR` package? I haven't used it, but I know it's an extension on the version in `e1071`. – John Colby Jan 15 '12 at 23:00
-
Thanks for the suggestion, I'll see if it implements a multinomial classifier. – Timothy P. Jurka Jan 15 '12 at 23:30
1 Answers
2
bnlearn not doing it for you? http://www.bnlearn.com/
Is on CRAN, and claims to implement "naive Bayes" network classifiers and "Discrete (multinomial) data sets are supported".

Spacedman
- 92,590
- 12
- 140
- 224
-
Thanks for this suggestion. I'll test it out and see if it works for multinomial data. Unfortunately `bnlearn` doesn't support compressed sparse matrices as input, but I can deal with that. – Timothy P. Jurka Jan 15 '12 at 23:30
-
3When I look at the bnlearn docs, I do not see an option to use a multinomial likelihood estimate for features. It says the features are assumed to be Gaussian distributed. Am I reading something wrong here? – gabe May 21 '14 at 19:59