From the course: Building Recommender Systems with Machine Learning and AI
Unlock this course with a free trial
Join today to access over 23,200 courses taught by industry experts.
Implement random exploration - Python Tutorial
From the course: Building Recommender Systems with Machine Learning and AI
Implement random exploration
- [Instructor] As an exercise, try your hand at implementing random exploration. Go back the Evaluate Users CFScript way back in the Collaborative Filtering section of the course. It generated top 10 recommendations for every user with user-based KNN and measured the hit rate. Your challenge is to modify this code, especially at the last slot in your top 10 recommendations is always used to surface a random movie that was released in the most current year in the Movie Lines data set. To do this, you'll have to modify our Movie Lines module to identify and extract movies in the most current year it has and modify the Evaluate Users CFScript to replace the 10th slot in each users recommendations with one of these movies chosen at random. See what impact it actually has on the hit rate. If it doesn't impact hit rate much, then it might be a reasonable thing to do if you have a real problem with new movies not being surfaced to users quickly enough. Up next, I'll review my solution to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
The cold start problem (and solutions)6m 12s
-
(Locked)
Implement random exploration54s
-
(Locked)
Exercise solution: Random exploration2m 18s
-
(Locked)
Stoplists4m 48s
-
(Locked)
Implement a stoplist32s
-
(Locked)
Exercise solution: Implement a stoplist2m 22s
-
(Locked)
Filter bubbles, trust, and outliers5m 39s
-
(Locked)
Identify and eliminate outlier users44s
-
(Locked)
Exercise solution: Outlier removal4m
-
Fraud, the perils of clickstream, and international concerns4m 33s
-
(Locked)
Temporal effects and value-aware recommendations3m 30s
-
(Locked)
-
-
-