/Digits-Recogniser

Machine Learning model to predict hand-drawn digits in Python.

Primary LanguagePython

Digits Recogniser

MACHINE LEARNING MODEL TO PREDICT HAND-DRAWN DIGITS IN PYTHON.

This model identifies the hand-drawn digit based on the data about each pixel of the image of the hand-drawn digit. Digits from 0 through 9 are hand-drawn.

The data files train.csv and test.csv contain pixel-values for gray-scale images of hand-drawn digits, from 0 through 9.

Each image is 28 pixels in height and 28 pixels in width, for a total of 784 pixels in total. Each pixel has a single pixel-value associated with it, indicating the lightness or darkness of that pixel, with higher numbers meaning darker. This pixel-value is an integer between 0 and 255, inclusive.

The training data set, (train.csv), has 785 columns. The first column, called "label", is the digit that was drawn by the user. The rest of the columns contain the pixel-values of the associated image.

The test data set, (test.csv), is the same as the training set, except that it does not contain the "label" column. Submission file contains "ImageID" and "Digit" for each of the 28000 images in the test dataset.

Logistic Regression algorithm is used here to train the ML model to predict the hand-drawn digit. Data is classified into 10 classes, one for each digit from 0 through 9.

Output of the model is stored as a csv file with 2 columns. The first column denotes the "ImageID" for each image in the test data, ranging from 1 to 28000. Second column ("Label") contains the digit as predicted by the model.


Pratham Sharma

Student at Vellore Institute of Technology, Vellore, Tamil Nadu, India

Reach out to me: prathams2425@gmail.com

LinkedIn profile: https://www.linkedin.com/in/prathamSharma25/

Kaggle profile: https://www.kaggle.com/prathamsharma123