Machine learning works by featuring a dataset that we will break up into a training section and a testing section. We will use the training data to come up with a model. We can then prove or test that model against the testing dataset.

For a dataset to be usable, we need at least a few hundred observations. I am using the housing data from Let's load the dataset by using the following command:

housing <- read.table("") 

The site documents the names of the variables as follows:




Per capita crime rate


Residential zone rate percentage


Proportion of non-retail business in town

CHAS ...

Get Learning Jupyter 5 - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.