Please see the following blog post for more details about this code Computer Vision for Predicting Facial Attractiveness