Code accompanying the book "Machine Learning for Hackers"
Switch branches/tags
Nothing to show
Clone or download
Ubuntu Ubuntu
Ubuntu and Ubuntu Added second column to toy data in first 'glmnet' example from Chapte…
…r 6 to satisfy new glmnet requirements. Results identical to original. All code from all chapters, except 9, now run error free.
Latest commit 4aa136e Dec 13, 2013

Code for Machine Learning for Hackers

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.

Getting started

The code in this book relies on several R libraries. Two libraries, RCurl and XML require additional software to be installed:

To make sure you have all of the requite libraries run the package_installer.R script. In your R console type the following:

> source("package_installer.R")

When running the installer inside R you will be asked where to save the library files. If you'd like to install the libraries globally, you can run script at the command-line with admin privileges:

$ sudo RScript package_installer.R



All source code is copyright (c) 2012, under the Simplified BSD License.
For more information on FreeBSD see:

All images and materials produced by this code are licensed under the Creative Commons Attribution-Share Alike 3.0 United States License: