Python Machine Learning - Code Examples

Chapter 1 - Giving Computers the Ability to Learn from Data

Overview




In [1]:
from IPython.display import Image

Building intelligent machines to transform data into knowledge

...

The three different types of machine learning


In [2]:
Image(filename='./images/01_01.png', width=500)


Out[2]:

In [1]:
from IPython.display import YouTubeVideo
YouTubeVideo("Pi9NpxAvYSs")


Out[1]:



Making predictions about the future with supervised learning


In [3]:
Image(filename='./images/01_02.png', width=500)


Out[3]:



Classification for predicting class labels


In [1]:
Image(filename='./images/01_03.png', width=300)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-17272bec90e1> in <module>()
----> 1 Image(filename='./images/01_03.png', width=300)

NameError: name 'Image' is not defined



Regression for predicting continuous outcomes


In [5]:
Image(filename='./images/01_04.png', width=300)


Out[5]:



Solving interactive problems with reinforcement learning


In [6]:
Image(filename='./images/01_05.png', width=300)


Out[6]:



Discovering hidden structures with unsupervised learning

...

Finding subgroups with clustering


In [7]:
Image(filename='./images/01_06.png', width=300)


Out[7]:



Dimensionality reduction for data compression


In [8]:
Image(filename='./images/01_07.png', width=500)


Out[8]:



An introduction to the basic terminology and notations


In [9]:
Image(filename='./images/01_08.png', width=500)


Out[9]:



A roadmap for building machine learning systems


In [10]:
Image(filename='./images/01_09.png', width=700)


Out[10]:

Applications


In [ ]:
Atari game
Go
Self Driving Car
Object Recognition
Scene Understanding
Medical diagnostics
Music Generation
Art Generation (Mario levels)
Story Writing
Speech recognition (personal assistants, chat bots)
Face recognition

Competitions


In [ ]:
Kagel cancer detection 
Youtube 8m video
multi-class pixelwise segmentation
imageNet (Large Scale Visual Recognition Challenge)



Preprocessing - getting data into shape

...

Training and selecting a predictive model

...

Evaluating models and predicting unseen data instances

...

Using Python for machine learning

...

Installing Python packages

...

Summary

...