01.04.2015 Views

1FfUrl0

1FfUrl0

1FfUrl0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 8<br />

Summary<br />

In this chapter, we started by improving our rating predictions from the previous<br />

chapter. We saw a couple of different ways in which to do so and then combined<br />

them all in a single prediction by learning how to use a set of weights. These<br />

techniques, ensemble or stacked learning, are general techniques that can be used<br />

in many situations and not just for regression. They allow you to combine different<br />

ideas even if their internal mechanics are completely different; you can combine their<br />

final outputs.<br />

In the second half of the chapter, we switched gears and looked at another method of<br />

recommendation: shopping basket analysis or association rule mining. In this mode,<br />

we try to discover (probabilistic) association rules of the customers who bought X are<br />

likely to be interested in Y form. This takes advantage of the data that is generated from<br />

sales alone without requiring users to numerically rate items. This is not available in<br />

scikit-learn (yet), so we wrote our own code (for a change).<br />

Association rule mining needs to be careful to not simply recommend bestsellers to<br />

every user (otherwise, what is the point of personalization?). In order to do this, we<br />

learned about measuring the value of rules in relation to the baseline as the lift of a<br />

rule. In the next chapter, we will build a music genre classifier.<br />

[ 179 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!