Coder Social home page Coder Social logo

face-detection-using-pca's Introduction

Unsupervised Learning

Project: Principal component analysis (PCA)

Install

This project requires Python 3.6 and the following Python libraries installed:

You will also need to have software installed to run and execute an iPython Notebook

Run

In a terminal or command window, navigate to the top-level project directory (that contains this README) and run one of the following commands:

ipython notebook PCA Mini-Project.ipynb

or

jupyter notebook PCA Mini-Project.ipynb

This will open the iPython Notebook software and project file in your browser.

Dataset

The dataset used in this example is a preprocessed excerpt of the Labeled Faces in the Wild

Principal component analysis (PCA)

Principal component analysis (PCA) is a statistical procedure that uses an orthogonal transformation to convert a set of observations of possibly correlated variables (entities each of which takes on various numerical values) into a set of values of linearly uncorrelated variables called principal components. If there are n observations withp variables, then the number of distinct principal components is min ( n − 1 , p ).

PCA is many advantages when applied to ML algorihtms:

  • Dimensionality reduction
  • Feature transformation
  • Data visualisation
  • Speeds up the machine learning algorithms

How does PCA work?

PCA transforms the data into a new coordinate system such that the greatest variance by some projection of the data comes to lie on the first coordinate(called the principal component), the second greatest varaince on the second coordinate, and so on.

The idea is to increase the variance and decrease the total sum of distance of each points from the PC. In above figure the PC1 has maximum variance and minimum total distance sum compared to PC2.

Results for face recognition

png

face-detection-using-pca's People

Contributors

shashank136 avatar

Stargazers

 avatar Trần Quốc Thiện avatar Fendy Hendriyanto avatar

Watchers

James Cloos avatar  avatar

Forkers

radhikascs

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.