O'Reilly logo

Building a Recommendation Engine with Scala by Saleem Ansari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Recommendation Engines and Where They Fit in?

In the earlier chapters, we set the stage for creating our implementations of recommendation engines. In this chapter, we will implement our first recommender system on a products dataset. Here we continue with the following topics:

  • Populate an Amazon dataset
  • Create a web app with user/product pages
  • Add recommendation pages
  • Add product and customer trends

Populating the Amazon dataset

Let's start by downloading the SNAP Amazon dataset from this page https://snap.stanford.edu/data/amazon-meta.html. First go to the datasets folder, download the file, and decompress it. Note that this file is about 2002 MB compressed and 933 MB uncompressed; it could take some time to download:

$ cd datasets/
$ wget ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required