Difficulty: intermediate
Estimated Time: 5 minutes

This course will introduce you to Machine Learning concepts using Python

Most of the ideas came from jbrownlee


You have learned the basics of Machine Learning using Python

Intro to Machine Learning

Step 1 of 5

Step 1 - Install Python Modules

These are the modules that we need for this course

  • scipy
  • numpy
  • matplotlib
  • pandas
  • sklearn

To check if we already have these go to Python 3 console:


Run the following commands:

import sys print('Python: {}'.format(sys.version))

import scipy print('scipy: {}'.format(scipy.__version__))

import numpy print('numpy: {}'.format(numpy.__version__))

import matplotlib print('matplotlib: {}'.format(matplotlib.__version__))

import pandas print('pandas: {}'.format(pandas.__version__))

import sklearn print('sklearn: {}'.format(sklearn.__version__))

Exit the console using quit()

For any missing modules install it using pip. e.g. if scipy is missing

pip install scipy

If pip is not installed, install it first:

apt install -y pyton-pip

So that we can view the images that we will generate later, we also need to spin up an http server like nginx.

apt -y update

apt install -y nginx

sed -i "s/root \/var\/www\/html;/root \/home\/scrapbook\/tutorial;/" /etc/nginx/sites-enabled/default

service nginx restart

Check if everything works by accessing nginx.

Test nginx