Dr. Seyedmostafa Safavi Trustworthy AI · Cybersecurity

AI & ML step-by-step tutorials

Learn machine learning by running the code.

A free, hands-on series of Google Colab notebooks that take you from the fundamentals of machine learning to applied network-security use cases. Open any notebook in your browser, run it, and experiment. No setup required.

Start with Tutorial 1 Video lectures & podcasts → See all workshops →

The full series

Notebooks · open in Google Colab
Tutorial 1

Tutorial for Beginners

Your first steps in machine learning: the workflow, tools and core ideas.

Open in Colab →
Tutorial 2

Data Preprocessing

Cleaning, encoding, scaling and preparing data so your models can learn from it.

Open in Colab →
Tutorial 3

Multiple Linear Regression

Predicting startup success with multiple linear regression, end to end.

Open in Colab →
Tutorial 4

Logistic Regression Visualisation

Building and visualising a logistic regression classifier and its decision boundary.

Open in Colab →
Tutorial 5

Decision Tree Classification

Training, tuning and interpreting decision-tree classifiers.

Open in Colab →
Tutorial 6

Neural Network

Your first neural network: layers, activations, training and evaluation.

Open in Colab →
Tutorial 7

Detecting Anomalies in Network Traffic

Applying ML to spot anomalies in network-traffic data, a core security use case.

Open in Colab →
Tutorial 8

Dimensionality Reduction: PCA, LDA, t-SNE

Reducing and visualising high-dimensional data with PCA, LDA and t-SNE.

Open in Colab →
Tutorial 9

Building an Artificial Neural Network

Constructing a deeper ANN from scratch and training it on real data.

Open in Colab →
Tutorial 10

Normal vs. Malicious Traffic

An AI model that distinguishes normal from malicious network traffic.

Open in Colab →

Watch & listen

Prefer video or audio? Same material, your pace

YouTube video lectures

The full lecture series that accompanies these notebooks. Watch the concepts explained step by step, then run the code yourself.

Podcasts

Audio discussions on AI, machine learning and cybersecurity. Ideal for commutes and revision between hands-on sessions.

Guided delivery for your group

These tutorials, lectures and materials can be delivered as a live workshop, bootcamp or semester module tailored to your team.

Request this workshop →

Go further

Want a guided version for your team?

I run these tutorials as live, hands-on workshops with datasets, exercises and mentorship tailored to your group.

Request a workshop Explore all workshops