Coder Social home page Coder Social logo

fionnachalmers / machine-learning-in-python-20-21 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eldave93/machine-learning-in-python-20-21

1.0 0.0 0.0 829.15 MB

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

Home Page: https://eldave93.github.io/Machine-Learning-in-Python-20-21/

License: Creative Commons Attribution Share Alike 4.0 International

Jupyter Notebook 37.82% HTML 62.18%

machine-learning-in-python-20-21's Introduction

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

  • .html files can be opened using any web browser (I use chrome).
  • For the notes, code can be viewed or hidden using the "Toggle Code" button at the top of the notebook.
  • For the exercises, answers can be viewed or hidden by clicking "Click here for answer" under each question.

PDF

  • Notes do not display code for ease of reading.
  • For the exercises, PDF1 are just the questions, and PDF2 are the questions and answers.
  • They are useful for adding your own notes to.
  • The best method I've found so far is to manually use https://pdfcrowd.com/ for converting the .html files.
    • They have a Python API... but it costs money so I do it manually.

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.

  • It make take a little bit to copy and install everything when you first get it set up, so its a good time to make a cup of tea.
  • Once working, the scripts are relatively quick to run.

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.

  • If "Rise" is installed, slideshow mode can be toggled on using the barchart icon on the top toolbar in Jupyter, and off again using the x in the top left.
  • You may need to zoom in and out to get some of the slides to be displayed fully, but if using Chrome then you can just toggle CTRL + and CTRL -
  • To get the "Toggle code" button to work, you need to go into "File", and click "Trust Notebook".

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:

  • .ipynb: The Juypter Notebook used to create the slides and notes.
  • .html: The html version of the notes and exercises.
  • .pdf: A pdf version of the notes and exercises.
  • .slides.html: A html version of the slides.

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

  • .slides.html has an issue with figures not being displayed properly.
    • Its better to run using "Rise" slideshow in Jupyter.

machine-learning-in-python-20-21's People

Contributors

eldave93 avatar

Stargazers

Fionna Chalmers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.