Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 625 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 625 Bytes

KNN-algorithm

In this project we are doing the Handwriting classification problem.
The model can able to predict the numbers from 1 to 10 which is written in hand. This is a supervised machine learning model.
##KNN steps

  1. Find the distance between new test point from all the train data set points
    using equation d = sqrt((x1-x2)^2 + (y1-y2)^2).
  2. Sort the distance and get the first 5 distance and which class it belongs to in the list.
  3. Based on first 5 distance and class find which calss occured more number of time and return that class as the answer.

This model has 97% accuracy.