fastNaiveBayes: Extremely Fast Implementation of a Naive Bayes Classifier

This is an extremely fast implementation of a Naive Bayes classifier. This package is currently the only package that supports a Bernoulli distribution, a Multinomial distribution, and a Gaussian distribution, making it suitable for both binary features, frequency counts, and numerical features. Another feature is the support of a mix of different event models. Only numerical variables are allowed, however, categorical variables can be transformed into dummies and used with the Bernoulli distribution. The implementation is largely based on the paper "A comparison of event models for Naive Bayes anti-spam e-mail filtering" written by K.M. Schneider (2003) <doi:10.3115/1067807.1067848>. Any issues can be submitted to: <>.

Version: 2.2.1
Depends: R (≥ 3.2.0)
Imports: Matrix, stats
Suggests: knitr, rmarkdown, testthat
Published: 2020-05-04
DOI: 10.32614/CRAN.package.fastNaiveBayes
Author: Martin Skogholt
Maintainer: Martin Skogholt <m.skogholt at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: fastNaiveBayes results


Reference manual: fastNaiveBayes.pdf
Vignettes: Fast Naive Bayes


Package source: fastNaiveBayes_2.2.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): fastNaiveBayes_2.2.1.tgz, r-oldrel (arm64): fastNaiveBayes_2.2.1.tgz, r-release (x86_64): fastNaiveBayes_2.2.1.tgz, r-oldrel (x86_64): fastNaiveBayes_2.2.1.tgz
Old sources: fastNaiveBayes archive

Reverse dependencies:

Reverse suggests: quanteda.textmodels


Please use the canonical form to link to this page.