1 / 10

Principal Component Analysis

Principal Component Analysis. Principal Component Analysis. Objective: Project the data onto a lower dimensional space while minimizing the information loss. Principal Component Analysis. load mnist m = mean(data); for i= 1:size ( data_m,2 ) data_m (:,i) = data(:, i) - m(i); end

basil-fry
Download Presentation

Principal Component Analysis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Principal Component Analysis

  2. Principal Component Analysis Objective: Project the data onto a lower dimensional space while minimizing the information loss

  3. Principal Component Analysis load mnist m = mean(data); for i=1:size(data_m,2) data_m(:,i) = data(:,i) - m(i); end [pc,evals] = pca_OF(data_m); pc_data = data_m*pc(1:200,:)';

  4. Principal Component Analysis function [pc,evals] = pca_OF(x) [pc,evals] = eig(cov(x)); evals = diag(evals); [evals, si] = sort(-evals); %Sort eigenvalues evals = -evals; pc = pc(:,si)'; %Sort eigenvectors by magnitude of eigenvalues

  5. Sorted Eigenvalues

  6. Normalized Cumulative Variance (information preserved)

  7. Projecting the digits onto the first two PCs

  8. Projecting the digits onto PCs 1 and 3

  9. Projecting the digits onto PCs 2 and 3

  10. Recognition Accuracies and Running Times with MNIST dataset

More Related