Coder Social home page Coder Social logo

adelig / digit-recognizer-kaggle-competition Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 675 KB

An investigation on the fundamental machine learning (computer vision) algorithms with the famous MNIST dataset.

License: GNU General Public License v3.0

Python 8.04% Jupyter Notebook 91.96%
random-forest knn svm xgboost linear-regression principal-component-analysis kaggle

digit-recognizer-kaggle-competition's Introduction

Kaggle - Digit Recognizer

alt text alt text

Notebook | Python code

Computer vision techniques to identify digits from a dataset of tens of thousands of handwritten images.
https://www.kaggle.com/c/digit-recognizer

Data Preprocessing

• Load Data
• Check for null/missing values
• Check for unbalanced labels
• Data normalization
• Label encoding (One Hot Encoding to convert categorical variables to one hot vectors)
• Split training and validation sets

Training models

• Multiple Linear Regression
• Support Vector Machine (SVM) with Principal Component Analysis (PCA)
• eXtreme Gradient Boosting (XGBoost) with parameter tuning
• Random Forest Classifier
• K Nearest Neighbors Classifier (KNN) with Principal Component Analysis (PCA)

Evaluating models

Evaluation performed based on both the F1 score and the deduced accuracy of each model on the validation data.

Outcomes

Performance measured as the accuracy on validation data per model:

  1. SVM with PCA : 97.9%
  2. KNN with PCA : 97.6%
  3. XGBoost with parameter tuning : 96.2%
  4. Random Forest Classifier : 88.7%
  5. Multiple Linear Regression : 85.1%

The above values are indicative in the sense that they highly depend on the selection of parameters such as the PCA component range, the seed in KNN, the number of estimators in Random Forest and many others.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.