Dorien Herremans

AI course 2021

Hi students!

I will be teaching week 5-9 of the AI course. As you know, you can reach me via email or on the Discord group of the course.

These weeks we will be focusing on neural networks in PyTorch, one of the three more popular machine learning libraries in Python. While machine learning does not have to happen in Python (there is also Matlab, C++ (like Cafe), java etc.), there is a huge popularity among AI/data scientists to turn to Python. Theano used to be a popular choice for researchers, but this Python library has gotten a bit in the background at the moment. So currently, we see that TensorFlow (Google), and Keras (high level interface over TensorFlow), as well as PyTorch are the most popular libraries for machine learning in Python. We opted for PyTorch, as I feel it is the most versatile and intuitive/easy to customise.

Each week will consist of lecture videos, which I will make available by Monday at the latest. You can watch them at your own pace. I spent a lot of time creating videos last year during the circuit breaker, so these will be my base videos (I will leave some of the materials that show the company I had during the lockdown), but I take time to update/edit the videos or add additional commentary/text when needed.

All materials will appear on this page, and I will be available on Discord most of the time @dorien me if you need urgent assistance.

The breakdown of the weeks will be follows:

  1. Quick review of machine learning topics. We will do an overview of important machine learning concepts and basic math/technologies. This is to make sure everyone is on the same foot and we are ready to embark upon the NN adventure together! The PyTorch lab will practice CUDA/GPU calculations / basic Tensors / logistic regression. These 4 weeks, we will have a steep learning curve and build up rapidly, so please bear with me if you have seen this in another course, new material will come soon!
  2. Neural networks - new for some of you; old news for others, depending on your background. I've tried to add concrete examples in there, e.g. on backprop. and we built up quite quickly, from perceptrons to RNN structures. The lab will practice LSTMs in PyTorch.
  3. Convolutional neural networks and transfer learning - Those of you who took the CDS course might recognise some of these concepts, however, we go a bit more in-depth. The lab practices CNNs in PyTorch as well as transfer learning.
  4. Generative neural networks - with all the basics in the previous classes, we get to the exciting stuff. Style transfer, generative models, etc. Lab will let you practice style transfer in PyTorch.

The labs are detailed Colab notebooks. I have spent time to write out the lessons inside the Colab, so take your time to read through the material. It will greatly help you in your homework/project/building your PyTorch skills!

After most weeks (5, 6, and 8) there will also be a homework assignment on eDimension based on what we saw in the lab.

In week 10 there will be a quiz on Monday.

Because you are all responsible adults, who can manage their time, I try to make all the materials (lecture and lab) available at the beginning of the week, so you can schedule yourself when you go through it.

Project

More info to follow very soon!

Week 5

Monday you will have the quiz with Prof. Kwan Hui.

The topic for this week's lecture is machine learning - an arch overview. The lecture consists of two videos:

and

The Lab consists of this integrated Google Colab notebook. I have spent a lot of time writing out the details meticulously, so go through, run each cell and read the text. Find me on Discord in the channel for this week for any question, remark, or just a chat.

Week 6 - Neural networks, LSTM, etc.

This week we'll delve into the exciting world of neural networks (again with PyTorch). We'll move ahead quickly, starting with simple NN until recurrent models (time series processing). The lecture consists of two videos this week, and the lab is a Google Colab notebook again. I will be on Zoom on Mondays at 9am (see link eDimension) and available on Discord to discuss the whole week.

and part 2:

The lab is available here.

Week 8 - CNNs and transfer learning

This week we are diving into multimedia, more specifically convolutional neural networks and transfer learning. Those of you who have taken my CDS class may see some familiar concepts, however, we focus on PyTorch and will have a very extensive Google Colab tutorial after the lecture.

We are allowed to have physical labs again! We have decided to take a hybrid approach and leave you free to do the lab at home or come to class for in-person guidance and questions during the last lesson-slot of the week.

Here is the python lab tutorial for this week (you can do at home or in class on Thursday/Friday).

There will be no homework given this week, to allow time to prepare you for the Quiz in week 10 on Monday.

Week 9 - Generative models

We are taking a deeper look into different architectures such as encoder/decoder, variational autoencoders, and cycleGAN this week. The focus will be controllable generation! Also remember there is a guest lecture (live) on Wednesday as per the eDimension announcement.

The lab for this week can be found here.

This week's Lab (Colab notebook). Please submit your filled in notebook on eDimension to get the checkoff mark.