1. Use the cropped, non-smiling students (in class_nonsmiling_cropped) to compute 10 eigenfaces. Show the average face and eigenfaces.

2. Use the same set of images to compute a userbase.
3. Have the program recognize the cropped, smiling students. You should expect only about 74% (20/27) accuracy with 10 eigenfaces.
# of eigenFaces : # correct (correct matchings)
1 : 3 (6, 9, 21)
3 : 12 (3, 4, 6, 8, 9, 11, 12, 14, 16, 19, 22, 24)
7 : 14 (2, 3, 5, 6, 8, 11, 12, 15, 16, 19, 22, 25, 27)
9 : 17 (2, 3, 5, 6, 8, 11, 12, 15, 16, 17, 18, 19, 22, 24, 25, 26, 27)
10 : 20 (2, 3, 5, 6, 7, 8, 11, 12, 14, 15, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27)
11 : 21 (2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 15, 16, 17 18, 19 , 22, 23, 24, 25, 26, 27)
13 : 20 (2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19 ,22, 23, 24, 26, 27)
15 : 20 (2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27)
17 : 21 (2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27)
19 : 20 (2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27)
21 : 20 (2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27)
23 : 20 (2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27)
25 : 20 (2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27)
27 : 20 (2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27)
Questions
1. Describe the trends you see in your plots. Discuss the tradeoffs; how many eigenfaces should one use? Is there a clear answer?
The results improved drastically when moving from too few towards the "right" number of images. It appears that too many vectors does not hurt it that much though since the results did not drop off. It appears that the best results, for this batch, came from having either 11 or 17 eigenfaces. These numbers hover around half of the total faces to be comparing against, so I'm wondering if there is a relationship between the values.
2. You likely saw some recognition errors in step 3; show images of a couple. How reasonable were the mistakes? Did the correct answer at least appear highly in the sorted results?
12
vs
21
As you can see, this is a very understandable mistake to have made. It did appear highly, and it is easy to see why these mistakes were made. It's interesting that 12's smiling face could be paired to his non-smiling one correctly, but apparently 21's couldn't.