In this coding challenge, I create a movie recommendation engine using the a “nearest neighbor” algorithm. In Part 2 of, I iterate through all the users to find the nearest neighbors and list the most “similar” users.

This video is part of session 3 of my Spring 2017 ITP “Intelligence and Learning” course (

Link to Part 1:
Link to Part 3:

Support this channel on Patreon:
To buy Coding Train merchandise:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
The Nature of Code Part 2 (Spring 2017) – Intelligence and Learning:
Notes on Pearson’s correlation coefficient:
ITP Thesis 2017:

Source Code for the all Video Lessons:


For More Coding Challenges:
For More Intelligence and Learning:

Help us caption & translate this video!