https://github.com/r9y9/naive_bayes
Naive Bayes implementation with digit recognition sample
https://github.com/r9y9/naive_bayes
Last synced: 3 months 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 (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-07T14:10:18.000Z (about 12 years ago)
- Last Synced: 2025-04-03T18:11:15.321Z (7 months ago)
- Language: Python
- Size: 160 KB
- Stars: 5
- Watchers: 2
- 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

### Result
0.7634 (7634/10000)
Note that it spends about an hour to test 10000 exapmles in this simple implementation.