Skip to content

ML algorithms to detect a handwritten digit - 28x28 image

Notifications You must be signed in to change notification settings

juigilkishore/digit-recognition

Repository files navigation

digit-recognition

ML algorithms to detect a handwritten digit - 28x28 image

  1. Logistic Regression

Plain logistic regression (with regularization). The features are computed through gradient descent alogorithm for each digit. Step size of 1E-5 and a maximum of 1000 iteration are used. The digit estimation is made based on the maximum value of the hypothesis/probability among all the digits from 0 to 9.

Execute logistic_regression.m file in octave. It loads the train.csv data, extracts the features from it, estimates the training data to check how good the model is and estimates the test data.

logistic_regression (lambda=0, maxNumIteration=2000, stepSize=1E-5): 90.9% accurate

logistic_regression (lambda=10, maxNumIteration=2000, stepSize=1E-5): No change - 90.9% accurate

logistic_regression (lambda=100, maxNumIteration=2000, stepSize=1E-5): No change - 90.9% accurate

logistic_regression (lambda=0, maxNumIteration=700, stepSize=0.5, feature scaled): - 90.929% accurate

logistic_regression (lambda=1, maxNumIteration=1500, stepSize=0.5, feature scaled): - 91.2% accurate

logistic_regression (lambda=10, maxNumIteration=1500, stepSize=0.5, feature scaled): - 90.714% accurate

About

ML algorithms to detect a handwritten digit - 28x28 image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published