Skip to content
This repository

Code accompanying the book "Machine Learning for Hackers"

branch: master

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 4aa136e17e
Ubuntu authored
Octocat-spinner-32 01-Introduction Updated Chapter 1 July 31, 2013
Octocat-spinner-32 02-Exploration Make over-binned histogram run faster July 31, 2013
Octocat-spinner-32 03-Classification Added 'image' directory to chapter 5 so that output could be saved wi… December 13, 2013
Octocat-spinner-32 04-Ranking Added 'image' directory to chapter 5 so that output could be saved wi… December 13, 2013
Octocat-spinner-32 05-Regression Added second column to toy data in first 'glmnet' example from Chapte… December 13, 2013
Octocat-spinner-32 06-Regularization Added second column to toy data in first 'glmnet' example from Chapte… December 13, 2013
Octocat-spinner-32 07-Optimization Added second column to toy data in first 'glmnet' example from Chapte… December 13, 2013
Octocat-spinner-32 08-PCA Fix stringsAsFactors problem with lubridate July 31, 2013
Octocat-spinner-32 09-MDS Revise Chapter 9 for new ggplot2 argument style July 31, 2013
Octocat-spinner-32 10-Recommendations Revised style and fixed filenames for Chapter 10 code. February 17, 2012
Octocat-spinner-32 11-SNA Standardize Chapter 11 code. February 14, 2012
Octocat-spinner-32 12-Model_Comparison Missing reshape dependency September 16, 2012
Octocat-spinner-32 slides Added slides for Chapters 1 and 5 from StrangeLoop September 24, 2012
Octocat-spinner-32 .gitignore Updated ignore file September 24, 2012
Octocat-spinner-32 README.md Fixed the error caused by using to get email frequency counts. Now us… December 12, 2013
Octocat-spinner-32 fast_check.R Added 'image' directory to chapter 5 so that output could be saved wi… December 13, 2013
Octocat-spinner-32 package_installer.R Adding default CRAN mirror for package installer September 23, 2012
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/

Something went wrong with that request. Please try again.