Handwritten digit classification using K-nearest neighbor algorithm in octave
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
README.md
handwitten digit classification.m
majority.m
nearNeigh.m
sqdist.m

README.md

Handwritten digit classification using K-nearest neighbor algorithm in Ocatve/Matlab

This repository contains a solution for an exercise from Bayesian Reasoning and Machine Learning book chapter 14.

Exercise 14.1. The file NNdata.mat contains training and test data for the handwritten digits 5 and 9. Using leave one out cross-validation, find the optimal K in K-nearest neighbors, and use this to compute the classification accuracy of the method on the test data.

For more details read this article: http://emaraic.com/blog/handwritten-digit-classification

Running code on octave (Video)

https://www.youtube.com/watch?v=5bf59Gq8ZSo