Deep learning in practice with pytorch

Deep learning in practice with pytorch

The aim of this class is to provide students with a hands-on approach to deep learning, exploring functionalities of the pytorch library. Different applications of deep learning to relational data such as images and time sequences will presented, including the description of architectures like convolutional neural networks, recurrent neural networks, autoencoders, and transformers.

Introduction to the class / Refresher on ML concepts

The first session is an introduction to the class and a (relatively quick) summary of basic machine learning concepts that will be extensively used in the following.

Slides - Introduction to the class, 2026
Slides - Refresher on machine learning, 2026

Colaboratory notebook with exercises on ML, 2026

Basics of pytorch

Introduction to basic concepts of pytorch. Tensors, Modules, Optimizers, Loss functions.

Slides - Refresher on neural networks and philosophy of pytorch, 2026

Colaboratory notebook with exercises on basic pytorch concepts, 2026

Intermediate pytorch concepts

Slightly more advanced pytorch concepts. Monitoring training performance, using Tensorboard, Stochastic gradient descent and derived techniques, Schedulers, Activation functions, Checkpointing.

Slides - Intermediate pytorch concepts, 2026

Colaboratory notebook with exercises on intermediate pytorch concepts, 2026

Convolutional neural networks

  1. Basics of Convolutional Neural Networks (CNNs): convolution, pooling, architectures, applications.
  2. An example applied to viral RNA/cDNA classification.

Slides - Convolutional neural networks (CNNs), 2026
Slides - Case study: using CNNs for viral RNA classification, 2026

Colaboratory notebook with exercises on CNNs, 2026

Remarks on deep learning

After having introduced the first modern neural network architectures, a few remarks on deep learning.

Slides - General remarks on deep learning (i), 2026

Visualization techniques for CNNs

An overview of visualization techniques for CNNs.

Slides - Visualization techniques for CNNs, 2026

Colaboratory notebook with exercises on visualization techniques for CNNs, 2026

Regularization

Quick excerpt on regularization techniques.

Slides - Regularization, 2026

Embeddings

Basic notions of embeddings: what they are, and how to create them. Example of word embeddings with Word2Vec.

Slides - Embeddings, 2026

Colaboratory notebook with exercises on embeddings, 2026
Colaboratory notebook with a short example of a Variational Autoencoder, 2026

Recurrent neural networks

Recurrent Neural Networks (RNNs) and more modern architectures, such as Long-Short-Term Memory Networks (LSTMs) and Gated Recurrent Units (GRUs).

Slides - Recurrent neural networks, 2026

Colaboratory notebook with exercises on RNNs, 2026

Sequence to sequence

Introduction to the seq2seq architecture.

Slides - Sequence to sequence, 2026

Colaboratory notebook with exercises on seq2seq, 2026

Terminology

Comments on common terminology found in neural network literature.

Slides - Terminology, 2026

Attention and Transformers

Attention module and Transformer architectures.

Slides - Attention, 2026

Flow matching

Flow matching for generative AI.

Slides - Flow matching, 2026

Concept bottleneck models

Introduction to Concept Bottleneck Models and Concept Embedding Models.

Slides - Concept bottlenecks, 2025

Slides - Current trends and future challenges, 2026

Seminars

The standard interpretable model (2026)

Advanced seminar on interpretable neural networks, given by Dr. Pietro Barbiero.

Slides - The standard interpretable model, 2026 (white on black)

Slides - The standard interpretable model, 2026 (black on white, automatically generated by Claude Opus 5.5)

Graph neural networks (2025)

Advanced seminar on graph neural networks, given by Dr. Gabriele Ciravegna.

Slides - Graph neural networks (GNNs), 2025

Colaboratory notebook with exercises on GNNs

Relational concept bottleneck models (2024)

Advanced seminar on relational concept bottleneck models, given by Dr. Pietro Barbiero.