Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johannesmessner/naivebayes-vs-logreg
https://github.com/johannesmessner/naivebayes-vs-logreg
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/johannesmessner/naivebayes-vs-logreg
- Owner: JohannesMessner
- Created: 2020-11-14T18:09:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-17T13:54:37.000Z (about 4 years ago)
- Last Synced: 2025-01-07T21:42:42.174Z (13 days ago)
- Language: Jupyter Notebook
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# naivebayes-vs-logreg
This is a simplified reproduction of the paper [On Discriminative vs. Generative classifiers: A comparison of logistic regression
and naive Bayes](https://papers.nips.cc/paper/2001/file/7b7a53e239400a13bd6be6c91c4f6c4e-Paper.pdf) by Andrew Y. Ng and Michael I. Jordan.The paper - and this code - show how logistic regression (discriminative approach) exhibits better asymptotic performance when compared to a naive bayes clasifier (generative approach), but that, at the same time, naive bayes approaches its asymptotic error faster.
This suggests that a scenario with limited data might be better suited for naive bayes, whereas an abundance of data will lead to better performance using logistic regression.This exercise was given as an assignment in the course "Machine Learning" by Phil Blunsom and Ani Calinescu at the University of Oxford.