Code Monkey home page Code Monkey logo

2d-visualization-of-mnist-dataset-'s Introduction

2D-Visualization-of-MNIST-Dataset

Visualizing a 784 dimensional dataset(MNIST) in 2d using PCA

Tech Stack

  1. Seaborn
  2. Matplotlib
  3. Scipy
  4. Scikit-learn
  5. Numpy

My approach to the problem

  1. Standardize The Data
  2. Compute the co-variance Matrix of it
  3. Compute the Eigen Values and Their Corresponding Eigen Vectors
  4. Take the top two maximum eigen values and their corresponding eigen vectors
  5. Project the standardized data on the plane formed by two principal eigen vectors by vector-vector multiplication.
  6. Append the labels to the 2D projected data
  7. Create a new dataframe for plotting our labeled points
  8. Plot the data on a 2D plane with x being the 1st principal and y being the 2nd principal and hue=label

How to run

  1. Download the MNIST data from https://www.kaggle.com/c/digit-recognizer
  2. Copy the train.csv file
  3. Paste it in the same folder where the jupyter notebook exists
  4. Open the jupyter notebook and run code

2d-visualization-of-mnist-dataset-'s People

Contributors

sayyss avatar

Stargazers

 avatar

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.