Git Product home page Git Product logo

pca-vis's Introduction

PCA Visualisation

Real-time tool for exploring the relationships between PCA components and input features.

Or, "Roughly what do these principal components actually correspond to?"

Demonstration GIF

Features

  • Real-time plot to give intuition about prinipal components.
  • Sliders dynamically created for each input feature.
  • Sliders begin at mean and are scaled to feature data ranges, giving an intuitive feel of how "sensitive" the components are to each feature.

Installation

pip install -r requirements.txt

Matplotlib has to be installed as a framework.

Usage

Run the demo on the iris dataset using:

python3 pca_vis.py

Or load any dataset as a Pandas DataFrame and pass it into the main() function as an argument.

Understanding

To learn a bit more about PCA, check out my friend Gary's repo.

Contributions

This project was inspired by this one and adapted the generic slider code from here.

pca-vis's People

Contributors

gianlucatruda avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.