Created
August 13, 2018 14:39
-
-
Save mick001/375cb927ca42cbd196191c80f8643063 to your computer and use it in GitHub Desktop.
Find eigenfaces of the Olivetti faces dataset in R.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# Plot of eigenfaces | |
# First 4 eigenfaces | |
plt_img(eigenvectors[, 1]) # Eigenface 1 | |
plt_img(eigenvectors[, 2]) # Eigenface 2 | |
plt_img(eigenvectors[, 3]) # Eigenface 3 | |
plt_img(eigenvectors[, 4]) # Eigenface 4 | |
plt_img(eigenvectors[, 20]) # Eigenface 20 | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment