Check out the End-to-End Machine Learning course where we code this up in python and use it to predict commuting times:
https://end-to-end-machine-learning.t...
Also, be sure to check out the free How Stuff Works Building Blocks course for other machine learning tutorials.
https://end-to-end-machine-learning.t...