Deepen your understanding of aspects of machine learning as applied to neuroscience. This course will cover supervised and unsupervised methods as well as classic machine learning methods and deep learning.
This course will explore machine learning methods with a discussion on their use in neuroscience. We will cover several aspects of machine learning, from classical methods to deep learning.
By the end, you will be able to:
This course has no specific prerequisites, but knowledge of linear algebra, probability theory and calculus will give you the best chance of success.
A good place to start is Kevin Murphy's book on Probabilistic Machine Learning. Before starting this course you might find it helpful to read:
If you get through these and want some more reading, please contact us and we can recommend some more!
We want to examine your ability to apply machine learning methods learnt during the lectures to novel situations. Questions will test theoretical machine learning concepts as well as your ability to apply these methods in Python.
Through this course, you will complete three pieces of coursework during lab sessions, and a final project.
All lectures are recorded, but the labs will not be.
♦: Guest Lecture: Introduction to Pytorch, Alex Capstick
♣: Guest Lecture: Large Language Models for Electronic Healthcare Records (EHR) Data Analysis, Louise Rigny (Data Scientist, Great Ormond Street Hospital for Children)
Date | Time | Content | Files | Activity | Feedback | Lecturer |
---|---|---|---|---|---|---|
Mon | 10 - 12 | Project | Lab | P. Barnaghi | ||
1 - 4 | Project | Lab | P. Barnaghi | |||
Tue | 10 - 12 | Project | Lab | P. Barnaghi | ||
1 - 4 | Project | Lab | P. Barnaghi | |||
Wed | 10 - 12 | Project | Lab | P. Barnaghi | ||
1 - 4 |
In March/April 2024 there will be an optional series on Generative AI and Large Language Models (LLMs) covering the topics:
Last year's slides and recordings are available here.
The slides are by Payam Barnaghi, whilst the notes are written by Nan Fletcher-Lloyd.
Labs and assessments are produced by Payam Barnaghi, Alex Capstick, Nan Fletcher-Lloyd, Yu Chen, Tianyu Cui, Marirena Bafaloukou, Ruxandra Mihai, Francesca Palermo, and Anastasia Gailly de Taurines. The entire github repository can be downloaded as a zip file using this link. This includes the labs and a copy of this website, which can be opened locally.
The following links are to the individual labs, already run and stored in GitHub. Clicking any of the "Open in Colab" buttons will open that lab in Google Colab, which allows you to run code from your browser with a GPU if selected.
The following are the steps to set up your environment if you will be running the labs locally:
conda create -n ml4ns python=3.11.5
requirements.txt
file (from here)
and place it in your root directory.
conda activate ml4ns
pip install -r requirements.txt
pip3 install torch torchvision torchaudio
pip install transformers
jupyter lab
import torch
Then:
torch.cuda.is_available()
And if you have a GPU, you should see True
, otherwise False
.
Each session:
If you're using Jupyter Lab, every time you go to work on this project you'll need to activate
your environment by running conda activate ml4ns
using either the Terminal (Mac) or
Anaconda
Prompt (Windows). Then you may enter the command jupyter lab
to open Jupyter Lab.
If you're using VSCode, you'll need to select the Python environment for each new file you open.
The GitHub repository for this course is available here: GitHub
This is a simple demo that shows you how cool machine learning is! This model is running in your browser and will predict the number of stars from a film review. Try it out!
If you want to contact Payam Barnaghi, send an email to: p.barnaghi@imperial.ac.uk or use the links on the staff images to contact a specific person.
This work is licensed under a CC BY 4.0 License:
Software elements are additionally licensed under the BSD (3-Clause) License.