Naive Bayes Classifier
This package contains Naive Bayes classifiers. NB assumes that dimensions of data are independent, any base distribution can be used as long as the whole model satisfy the NB assumption.
The standard NB uses Bernoulli as the base distribution. It works for binary data. This package also provides NB classifier with Gaussian base which works for real value data.
I tried my best to make the code succinct, so that it is easy to follow. Please try the demo script in the package.
This package is now a part of the PRML toolbox (http://www.mathworks.com/matlabcentral/fileexchange/55826-pattern-recognition-and-machine-learning-toolbox).
Cite As
Mo Chen (2024). Naive Bayes Classifier (https://www.mathworks.com/matlabcentral/fileexchange/55864-naive-bayes-classifier), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Classification >
- AI and Statistics > Deep Learning Toolbox > Image Data Workflows > Pattern Recognition and Classification >
Tags
Acknowledgements
Inspired by: Pattern Recognition and Machine Learning Toolbox, Kmeans Clustering
Inspired: EM for Mixture of Bernoulli (Unsupervised Naive Bayes) for clustering binary data
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
NaiveBayes/
NaiveBayes/other/
Version | Published | Release Notes | |
---|---|---|---|
1.0 |
|