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.
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
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans