Ready to Start Learning?

Sign in to check if you already have access, or get started with a purchase or membership.

Recommender

0:00
8/24/2022
Build a recommendation engine using Django & a Machine Learning technique called Collaborative Filtering.
A project like this is really a collection of 3 parts:
  • Web Process: Setup up Django to collect user's interest and provide recommendations once available.
  • Machine Learning Pipeline: Extract data from Django, transform it, and train a Collaborative Filtering model.
  • Worker Process: This is the glue. We'll use Celery to schedule/run the trained model predictions and update data for Django-related user recommendations.
Recommended Experience
Optional but helpful
Resources
Recommender

Lifetime access to this course

or get access to 500+ courses with a membership

Sections

1

Welcome

0:00

2

Walkthrough & Requirements

0:00

3

Where to get help

0:00

4

Setup Project

0:00

5

Django as a ML Pipeline Orchestration Tool

0:00

6

Generate Fake User Data

0:00

7

Django Management Command to add Fake User Data

0:00

8

Our Collaborative Filtering Dataset

0:00

9

Load The Movies Dataset into the Movie Django Model

0:00

10

Create Ratings Model with Generic Foreign Keys

0:00

11

Calculate Average Ratings

0:00

12

Generate Movie Ratings

0:00

13

Handling Duplicate Ratings with Signals

0:00

14

Calculate Movie Average Rating Task

0:00

15

Setup Celery for Offloading Tasks

0:00

16

Converting Functions into Celery Tasks

0:00

17

Movie List & Detail View, URLs and Templates

0:00

18

Django AllAuth

0:00

19

Update the Movie Ratings Task

0:00

20

Rendering Rating Choices

0:00

21

Dislay a User's Ratings

0:00

22

Dynamic Requests with HTMX

0:00

23

Rate Movies Dynamically with HTMX

0:00

24

Infinite Rating Flow with Django & HTMX

0:00

25

Rating Dataset Exports Model & Task

0:00

26

Using Jupyter with Django

0:00

27

Load Real Ratings to Fake Users

0:00

28

Update Movie Data

0:00

29

Recommendations by Popularity

0:00

30

What is Collaborative Filtering

0:00

31

Collaborative Filtering with Surprise ML

0:00

32

Surprise ML Utils & Celery Task For Surprise Model Training

0:00

33

Batch User Prediction Task

0:00

34

Storing Predictions in our Suggestion Model

0:00

35

Updating Batch Predictions Based on Previous Suggestions

0:00

36

ML-Based Movies Recommendations View

0:00

37

Trigger ML Predictions Per User Activity

0:00

38

Position Ranking for Movie Querysets

0:00

39

Movie Embedding Idx Field and Task

0:00

40

Movie Dataset Exports

0:00

41

Schedule for ML Training, ML Inference, Movie IDX Updates, and Exports

0:00

42

Overview of a Neural Network Colab Filtering Model

0:00

43

Thank you and next steps

0:00