Recommender From Scratch: Watch 24 Films Find Their Genres
A program learned three numbers for each of 24 made-up films, and films of one genre ended up together in 3D.
Video #195 ยท Machine learning and data science
Steps in the video
- 0:00 Three numbers per film, and the genres sorted themselves
- 0:30 The idea
- 1:05 Setup
- 1:24 The made up data
- 1:38 The model
- 1:59 Training
- 2:29 The numbers to beat
- 2:46 Training run
- 3:12 Watch it learn
- 3:36 A recommendation
- 4:00 The person in the picture
- 4:19 What this does not show
- 4:57 Mistakes to avoid
- 5:28 My take and next steps
- 5:52 Recap
Files
- data.py (26 lines)
- factorise.py (33 lines)
- run.py (40 lines)
Tested with
Python 3.12.15
What this does not show
Made-up ratings with genres built in, so the result is easy: 60 people, 24 films, three factors chosen for the picture, 120 test ratings from one split. No real ratings file, no alternating least squares, no implicit feedback, no cold start. The 3D picture is drawn from the real numbers of this run.
Sources
Learning IT by Example.