Skip to content

tdepalle/knnClassifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kNN Classifier on Python

The purpose of this package is to recognize handwritting number by using a kNN Classifier

Organization

This Package is organized with 3 folders :

  • /script : python scripts for classification, recognition and ploting graph
  • /mnist : the MNIST raw data (.csv) with training images, training labels, test images, test labels
  • /result : the result data used to accelerate the analyze because of the computation time (data of test's 100 nearest images from training)

In order to see how work the kNN classifier you have to open knn.py. For analyzing the result for different k and all the data set (10k images) you should run plot.py

Librairies dependences

You need to have numpy, and matplotlib on you computer. For that :

$ sudo apt-get install python-numpy python-scipy python-matplotlib

In order to execute python script:

$ cd script
$ python knn.py
$ python plot.py

About

kNN classifier on MNIST data (handwriting digit)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages