Machine-Learning-in-Python-20-21

Materials for Weeks 8-11 of Machine Learning in Python (MATH11205) at Edinburgh University.

View the Project on GitHub Eldave93/Machine-Learning-in-Python-20-21

Machine Learning in Python (Weeks 8-11)

Welcome to materials for Weeks 8-11 of Machine Learning in Python (MATH11205), a Postgraduate Course in the School of Mathematics at the University of Edinburgh.

Viewing Notes and Exercises

If you want to view the Notes online, you can just follow the links below:

SVM

  1. Maximal Margin Classifiers [HTML, PDF]
  2. Support Vector Machines [HTML, PDF]
  3. Applications [HTML, PDF]

Exercises [HTML, PDF1, PDF2]

Trees

  1. Decision Trees [HTML, PDF]
  2. Ensemble Averaging [HTML, PDF]
  3. Applications [HTML, PDF]

Exercises [HTML, PDF1, PDF2]

Clustering

  1. K-Means [HTML, PDF]
  2. Hierarchical and Density Clustering [HTML, PDF]
  3. Applications [HTML, PDF]

Exercises [HTML, PDF1, PDF2]

Ethics

  1. Big Data, Black Boxes, and Bias [HTML, PDF]

If you want to download and view them offline, you can right click on the links above, and click “save link as”.

HTML

PDF

Running the Juypter Notebooks Binder

If you want to run the Juypter Notebooks on the cloud, the easiest method is to click the “Launch Binder” button above.

If you want to run them locally, then the way I set them up is the following (other methods exist):

  1. Download Anaconda (https://www.anaconda.com/products/individual)
  2. Using the “Anaconda Navigator”, click on the “Environments” tab, then “Create” to make a new Python 3.8 environment (I called mine “mlp”)
  3. Click on the “Home” tab, on the top dropdown menu (“Applications on”) select your new environment.
  4. Install “Jupyter Notebook” in your environment and click “Launch”.
  5. Locate to where the course materials are (You could clone the repository from GitHub), and run the “package_install” notebook from the “Extra” folder.

Viewing Slides

I use “Rise” slideshows to present the .ipynb Juypter Notebooks.

GitHub File Structure

You can also access the material directly though GitHub. In each of the weekly content folders you will find the following types of files:

For each week, there are also subfolders for “Images”, saved “Models”, and “PDF_Prep” (files used to prepare pdfs).

As well as the weekly folders, there are folders for the “Data” used in the lectures and an “Extra” folder, containing additional material (most are currently unfinished).

Known Issues