Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 533 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 533 Bytes

knn

kNN classifier for recognizing handwritten numerals.

Data is from the Elements of Statistical Learning. zip.train is used to train the classifier, zip.test is to test its performance. Each contains 16x16-pixel grayscale images of the digits 0-9. There is one digit per row: the column corresponds to the number, the next 256 are the grayscale values.

For each given test point, the k training points with the smallest Euclidean distance are used as its nearest neighbors.