Question: Use Matlab PCA and LDA are two important linear dimensionality reduction methods. In this question, you will compare different implementations of PCA and LDA, given
Use Matlab
PCA and LDA are two important linear dimensionality reduction methods. In this question, you will compare different implementations of PCA and LDA, given CMU PIE dataset. The CMU PIE dataset contains 68 people, and 21 images under different lightings for each person. The size of each image is 3030. a. Please implement PCA and LDA by yourself, and then use the provided CMU PIE dataset (PIE.mat) for evaluations. In this evaluation, we mainly focus on face recognition, and use nearest neighbor classifier. Please run with different training sets, i.e., trainNum = 5,10,15 per subject (rest for testing), and record the running time accordingly. In total, there will be 6 recognition accuracies and 6 running time for PCA and LDA. Use a table to summarize all the results. b. Use the online code PCA and LDA provided in the package for the same tasks as last question. Use a table to summarize all the results. (Hint: a sample code has been provided in the package, SampleTest.m) c. Both accuracy and running time may be different between your implementations and online code. Please compare and analyze the time complexity of different implementations (including the time complexity of major steps). For the online code and its algorithms details,please start from http://www.cad.zju.edu.cn/home/dengcai/Data/SR.html
[provided files list]: PCA.m, LDA.m, LGE.m, mySVD.m, SampleTest.m, PIE.mat
Files are provided in the following link https://drive.google.com/drive/folders/0B_W5TGttGNmzV1ItYVRfVmw5b0E
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
