June 2017
Beginner to intermediate
296 pages
7h 4m
English
Let's take a look at some code to actually run Alternating Least Squares recommendations on the MovieLens dataset. You'll see just how simple it is to do and we'll take a look at the results.
You can download the script from the download package for this book. Look for movie-recommendations-als.py, download that into your SparkCourse folder, and then we can play with it. This is going to require us to input a user ID that I want recommendations for. So, how do we know if recommendations are good? Since we don't personally know any of the people that are in this dataset from MovieLens, we need to create a fictitious user; we can kind of hack their data to stick it in there. So, in the ml-100k folder, ...
Read now
Unlock full access