Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r9y9/naive_bayes
Naive Bayes implementation with digit recognition sample
https://github.com/r9y9/naive_bayes
Last synced: 16 days ago
JSON representation
Naive Bayes implementation with digit recognition sample
- Host: GitHub
- URL: https://github.com/r9y9/naive_bayes
- Owner: r9y9
- Created: 2013-08-04T15:03:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-07T14:10:18.000Z (over 11 years ago)
- Last Synced: 2024-05-02T01:27:21.341Z (7 months ago)
- Language: Python
- Size: 160 KB
- Stars: 6
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
naive_bayes
===========Naive Bayes implementation with digit recognition example
## Requirement
- numpy
- scipy
- matplotlib## Synthetic data example
$ git clone https://github.com/r9y9/naive_bayes && cd naive_bayes
$ python naive_bayes_test.py## Digit recognition using MNIST dataset
$ python mnist_digit_recognition.py### After training
mean of Gaussians
![](mnist_mean_of_gaussian.png)### Result
0.7634 (7634/10000)Note that it spends about an hour to test 10000 exapmles in this simple implementation.