Introducing content-based recommendation

To understand the inner workings of a content-based recommendation system, let's look at a simple example. We will use the wine dataset from https://archive.ics.uci.edu/ml/datasets/wine

This dataset is the result of the chemical analysis of wine grown in the same region in Italy. We have data from three different cultivars (From an assemblage of plants selected for desirable characters, Wikipedia: https://en.wikipedia.org/wiki/Cultivar).

Let's extract the data from UCI machine learning repository:

> library(data.table)> wine.data <- fread('https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data')  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload Upload Total Spent ...

Get R Data Analysis Projects 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.