Machine Learning Foundations from University of Washington, rewrite in numpy, pandas, scipy and sklearn