I'd be happy to help. Example code for Machine Learning for Hackers can be found here: https://github.com/johnmyleswhite/ML_....
This page also states: "This repository contains all of the code examples for Machine Learning for Hackers (2012). The code may not appear exactly as it does in the text, as additional comments and modifications may have been added since publication." Hope that helps and have a great day!
Customer Service Representative