ML Practitioner

Case File: Ask the Neighbours

Build a second kind of model by hand: k-nearest neighbours. To predict a trip, find the k most similar past trips and average their times. Discover why the features must be put on the same scale, how the choice of k trades noise against blur, and compare with the straight line. NumPy and pandas, on data generated for you alone.

55 min

Case File: Ask the Neighbours

Build a second kind of model by hand: k-nearest neighbours. To predict a trip, find the k most similar past trips and average their times. Discover why the features must be put on the same scale, how the choice of k trades noise against blur, and compare with the straight line. NumPy and pandas, on data generated for you alone.

In this lesson:

  • machine-learning
  • knn
  • nearest-neighbours
  • feature-scaling
  • hyperparameter
  • python
  • numpy
  • case-file

๐Ÿ”’ This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans