From the course: Building Recommender Systems with Machine Learning and AI
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Producing and evaluating content-based movie recommendations - Python Tutorial
From the course: Building Recommender Systems with Machine Learning and AI
Producing and evaluating content-based movie recommendations
- [Instructor] So open up Spyder if you haven't already. Let's open up the Content Based folder in the course materials. It contains a copy of the same framework that was developed in the previous section, so there's no need to go through that again. Instead, just open up the ContentRecs.py file and the ContentKNNAlogrithm.py file. Let's start by looking at ContentRecs.py. This looks a lot like the Recs bake off file we wrote while testing out our recommendation evaluation framework. The only real difference is instead of pitting the SVD algorithm against a random one, we're pitting a new ContentKNN algorithm against random recommendations. Already the work of writing that framework is paying off. In the interest of time, we're not going to compute top-end recommender metrics, and only look at accuracy. But we will sample the top-end recommendations for user 85 just to get a feel as to what's going on. So what's in ContentKNN algorithm? Open it up and see. The main point…
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)
Content-based recommendations and the cosine similarity metric8m 58s
-
K-nearest neighbors (KNN) and content recs3m 59s
-
(Locked)
Producing and evaluating content-based movie recommendations5m 23s
-
(Locked)
Bleeding edge alert: Mise-en-scene recommendations4m 31s
-
(Locked)
Dive deeper into content-based recommendations4m 26s
-
(Locked)
-
-
-
-
-
-
-
-
-