Code Monkey home page Code Monkey logo

k-means-clustering-and-principal-component-analysis's Introduction

K-Means-Clustering-and-Principal-Component-Analysis

In this exercise, you will implement the K-means clustering algorithm and apply it to compress an image. In the second part, you will use principal component analysis to find a low-dimensional representation of face images. Files needed for this exercise -

  1. ex7.mlx - MATLAB Live Script that steps you through the exercise
  2. ex7data1.mat - Example Dataset for PCA
  3. ex7data2.mat - Example Dataset for K-means
  4. ex7faces.mat - Faces Dataset
  5. bird small.png - Example Image
  6. displayData.m - Displays 2D data stored in a matrix
  7. drawLine.m - Draws a line over an exsiting figure
  8. plotDataPoints.m - Initialization for K-means centroids
  9. plotProgresskMeans.m - Plots each step of K-means as it proceeds
  10. runkMeans.m - Runs the K-means algorithm
  11. *pca.m - Perform principal component analysis
  12. *projectData.m - Projects a data set into a lower dimensional space
  13. *recoverData.m - Recovers the original data from the projection
  14. *findClosestCentroids.m - Find closest centroids (used in K-means)
  15. *computeCentroids.m - Compute centroid means (used in K-means)
  16. *kMeansInitCentroids.m - Initialization for K-means centroids

If you have any doubt or for feedback, feel free to comment in discussion section.

k-means-clustering-and-principal-component-analysis's People

Contributors

tarun-infiniteloop avatar

Watchers

 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.