I continue to chip away at Data Science from Scratch. This time I tried out Chapter 12: K Nearest Neighbours.
Learnt several few things from this hack:
 How to do XML parsing in Python. (blogged about it as well)
 Python Coding. Joel’s code is amazing.
Some cool visualizations are as follows:
Here’s how the data looks like plotted onto the US map:
Check out how the variation when the value of K varies from K=1 to K=5.
K=1. This is an example of overfitting.