This code implements K-means clustering algorithm and apply it to compress an image. This code also uses principal component analysis to find a low-dimensional representation of face images.
The detailed instructions can be found in the docs folder.