Skip to content

fastNaiveBayes

Extremely Fast Implementation of a Naive Bayes Classifier

v2.2.1 · May 4, 2020 · GPL-3

Description

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: <https://github.com/mskogholt/fastNaiveBayes/issues>.

Downloads

374

Last 30 days

10147th

1.3K

Last 90 days

12.7K

Last year

Trend: -2.6% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Martin Skogholt <m.skogholt@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Martin",
                    family = "Skogholt",
                    role = c("aut", "cre"),
                    email = "m.skogholt@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Martin Skogholt <m.skogholt@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Martin",
                    family = "Skogholt",
                    role = c("aut", "cre"),
                    email = "m.skogholt@gmail.com")
as necessary.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Martin Skogholt <m.skogholt@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Martin",
                    family = "Skogholt",
                    role = c("aut", "cre"),
                    email = "m.skogholt@gmail.com")
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Martin Skogholt <m.skogholt@gmail.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Martin",
                    family = "Skogholt",
                    role = c("aut", "cre"),
                    email = "m.skogholt@gmail.com")
as necessary.

Reverse Dependencies (1)

Dependency Network

Dependencies Reverse dependencies Matrix quanteda.textmodels fastNaiveBayes

Version History

new 2.2.1 Mar 10, 2026
updated 2.2.1 ← 2.2.0 diff May 3, 2020
updated 2.2.0 ← 2.1.1 diff Feb 22, 2020
updated 2.1.1 ← 2.1.0 diff Feb 8, 2020
updated 2.1.0 ← 1.1.2 diff Aug 27, 2019
updated 1.1.2 ← 1.1.1 diff Apr 15, 2019
updated 1.1.1 ← 1.0.1 diff Mar 30, 2019
updated 1.0.1 ← 1.0.0 diff Mar 7, 2019
new 1.0.0 Feb 27, 2019