Principal component analysis - understanding world cuisine
Food is a powerful symbol of who we are. There are many types of food identification, such as ethnic, religious, and class identifications. Ethnic food preferences become identity markers in the presence of gustatory foreigners, such as when one goes abroad, or when those foreigners visit the home shores.
Getting ready
In order to perform principal component analysis, we shall be using a dataset collected on the Epicurious recipe dataset.
Step 1 - collecting and describing data
The dataset titled epic_recipes.txt
shall be used. The dataset is in standard format.
How to do it...
Let's get into the details.
Step 2 - exploring data
The first step is to load the following packages:
> install.packages("glmnet") ...
Get Practical Machine Learning Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.