January 2018
Intermediate to advanced
470 pages
11h 9m
English
Let's get the top six movie predictions for user 668. The following source code can be used to make the predictions:
// Making Predictions. Get the top 6 movie predictions for user 668 println("Rating:(UserID, MovieID, Rating)") println("----------------------------------") val topRecsForUser = model.recommendProducts(668, 6) for (rating <- topRecsForUser) { println(rating.toString()) } println("----------------------------------")>>>

Read now
Unlock full access