The rwml-R Github repo is updated with R code to accompany Chapter 3 of the book “Real-World Machine Learning” by Henrik Brink, Joseph W. Richards, and Mark Fetherolf.
Survivors on the Titanic
The Titanic Passengers dataset is used to illustrate various processes used
to prepare data for modeling, including
factor variables to dummy variables. For example, the code
to produce the
following table of processed data is provided:
I also go “off-script” a bit (do some things not contained in the book) and
demonstrate some useful visualization, modeling, and performance
measuring techniques available with the
MNIST database of handwritten digits
A k-nearest neighbors classifier (from the
kknn package) is used to
predict the numbers represented in the MNIST database of handwritten digits.
Examples of the types of digits present in the dataset and the R code to
Auto MPG dataset
As an example of a linear regression analysis, the Auto MPG dataset introduced
in Chapter 2 resurfaces and fuel economy is predicted from origin, year of
production, and performance characteristics such as horsepower and engine
As always, feedback is welcome
As always, I’d love to hear from you if you find the project helpful or if you
have any suggestions. Please leave a comment below or use the Tweet button.
Also, feel free to fork the rwml-R repo
and submit a pull request if you wish to contribute.