In this project we have with the help of knn machine learning classify the hand written digits from MNIST database. To know about what is kNN go to KNN machine learning
- Download the MNIST datasets in your system from the given link MNIST datasets. Download all four files and unzip them.
- After downloading and unzipping all files . Make sure that Anaconda which is a free and open source distribution of the Python and R programming languages for data science and machine learning related applications is available on your system and if not then download it from the given link Anaconda
- After Downloading Anaconda open Anaconda navigator on your system and then in that navigator launch jupyter notebook
- In that juputer notebook open the given file in this repository and that is knn digit recognition.ipynb
- In this it takes input of images from the MNIST dataset , that are hand written digits and predict the output of the given number . Through knn machine learning it shows 99% accuracy
- Each image is a 28 by 28 pixel square (784 pixels total). A standard spit of the dataset is used to evaluate and compare models, where 60,000 images are used to train a model and a separate set of 10,000 images are used to test it. It is a digit recognition task. As such there are 10 digits (0 to 9) or 10 classes to predict. Results are reported using prediction error, which is nothing more than the inverted classification accuracy.
- The given result is shown in a form of confusion matrix . To know what a confusion matrix is and how to implement it Confusion Matrix
- In this datasets we have checked for digit 2,3 and 8 and predicted their result
- This also shows the images that are miss readed as 3 instead they are 8