ageron / handson-ml2

A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in Python using Scikit-Learn, Keras and TensorFlow 2.
Apache License 2.0
27.81k stars 12.74k forks source link

Chapter 1 supermarket example #189

Open kabsho1 opened 4 years ago

kabsho1 commented 4 years ago

Hello there,

While reading the ch1, I was reminded of a little comment that might be of use. On page 13 at the end of Unsupervised Learning, it is stated, "Running an association rule on your sales logs may reveal that people who purchase barbecue sauce and potato chips also tend to buy steak. Thus, you may want to place these items close to one another."

What I have learned is that supermarkets tend to place items they know people buy together as far apart as possible. This is in order to get customers to walk down as many extra isles as possible, looking at and picking up other non-essential items along the way. This is only one of many strategies that supermarkets use to "get people to buy more than they planned."

Hope this is useful! -Kab

ageron commented 4 years ago

Haha, thanks for pointing this out, I assumed supermarkets wanted to improve their service, but I guess I was a bit too optimistic: they'd rather improve their sales instead! That said, I'm not sure I want to mention this fact in the book: I'd rather encourage readers to imagine positive applications of Machine Learning. I must be a dreamer...