Skip to Content
R: Unleash Machine Learning Techniques
book

R: Unleash Machine Learning Techniques

by Raghav Bali, Dipanjan Sarkar, Brett Lantz, Cory Lesmeister
October 2016
Beginner to intermediate
1123 pages
26h 44m
English
Packt Publishing
Content preview from R: Unleash Machine Learning Techniques

Evaluating a product contingency matrix

We will be doing a couple of things here. First, we will analyze a small toy dataset belonging to a supermarket, by using a product contingency matrix of product pair purchases based on their frequency. Then we will move on to contingency matrices based on other metrics such as support, lift, and so on by using another dataset.

The data for our first matrix consists of the six most popular products sold at the supermarket and also the number of times each product was sold by itself and in combination with the other products. We have the data in the form of a data table captured in a csv file, as you can see in the following figure:

To analyze this data, we first need to understand what it depicts. Basically, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Semi-Supervised and Unsupervised Machine Learning: Novel Strategies

Semi-Supervised and Unsupervised Machine Learning: Novel Strategies

Amparo Albalate, Wolfgang Minker
Strategies in Biomedical Data Science

Strategies in Biomedical Data Science

Jay A. Etchings, Ken Buetow

Publisher Resources

ISBN: 9781787127340Purchase Link