Code accompanying the book "Machine Learning for Hackers"
R CSS
Pull request Compare This branch is 8 commits ahead of johnmyleswhite:master.
Latest commit 5164c4e Dec 30, 2014 Joseph Misiti added last figure in chapter 2
Permalink
Failed to load latest commit information.
01-Introduction added some for chapter 2 Dec 29, 2014
02-Exploration added last figure in chapter 2 Dec 30, 2014
03-Classification finished chapter 2, moving on to chapter 3 Dec 30, 2014
04-Ranking Added 'image' directory to chapter 5 so that output could be saved wi… Dec 13, 2013
05-Regression Added second column to toy data in first 'glmnet' example from Chapte… Dec 13, 2013
06-Regularization Added second column to toy data in first 'glmnet' example from Chapte… Dec 13, 2013
07-Optimization Added second column to toy data in first 'glmnet' example from Chapte… Dec 13, 2013
08-PCA Fix stringsAsFactors problem with lubridate Jul 31, 2013
09-MDS Revise Chapter 9 for new ggplot2 argument style Jul 31, 2013
10-Recommendations Revised style and fixed filenames for Chapter 10 code. Feb 17, 2012
11-SNA Standardize Chapter 11 code. Feb 14, 2012
12-Model_Comparison Missing reshape dependency Sep 16, 2012
slides Added slides for Chapters 1 and 5 from StrangeLoop Sep 24, 2012
styles added initial notebook for chapter 1 Dec 29, 2014
.gitignore added initial notebook for chapter 1 Dec 29, 2014
README.md Fixed the error caused by using to get email frequency counts. Now us… Dec 12, 2013
fast_check.R Added 'image' directory to chapter 5 so that output could be saved wi… Dec 13, 2013
package_installer.R Adding default CRAN mirror for package installer Sep 23, 2012
requirements.txt added initial notebook for chapter 1 Dec 29, 2014

README.md

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

Authors

License

All source code is copyright (c) 2012, under the Simplified BSD License.
For more information on FreeBSD see: http://www.opensource.org/licenses/bsd-license.php

All images and materials produced by this code are licensed under the Creative Commons Attribution-Share Alike 3.0 United States License: http://creativecommons.org/licenses/by-sa/3.0/us/