TExcelTAD
Home › ML Foundations: AI, ML, Deep Learning & the ML Lifecycle › Introduction to the Machine Learning Track

Introduction to the Machine Learning Track

A spam filter that keeps up with new tricks, a phone that unlocks when it sees your face, a bank that stops a stolen card after one odd payment: none of these were programmed rule by rule. Each one learned its behaviour from examples. This track teaches how that works, from the first idea to a model running in production, and it does so the engineering way: with data you can inspect, code you can run and numbers you can check.

This first course, ML Foundations, draws the map. It explains what artificial intelligence, machine learning and deep learning are, how a learned program differs from a written one, what happens in each stage of an ML system's life, and the eight ways a machine can learn. Every later course zooms into one part of this map.

A first taste: learning a rule from examples

Suppose you did not know the formula that converts Celsius to Fahrenheit, but you had seven readings from a thermometer that shows both scales. The readings are slightly off, as real measurements are. A learning algorithm can recover the rule from them:

python · try it yourself
import numpy as np
from sklearn.linear_model import LinearRegression

# Seven readings from a cheap thermometer that shows both scales.
rng = np.random.default_rng(0)
celsius = np.array([-10, 0, 8, 15, 22, 30, 37], dtype=float)
fahrenheit = 1.8 * celsius + 32 + rng.normal(0, 0.5, size=7)   # small reading errors

model = LinearRegression().fit(celsius.reshape(-1, 1), fahrenheit)
print("learned rule: F =", round(model.coef_[0], 3), "* C +", round(model.intercept_, 3))
print("true rule:    F = 1.8 * C + 32")
print("prediction for 100 C:", round(model.predict([[100.0]])[0], 1), "F")
learned rule: F = 1.808 * C + 32.021
true rule:    F = 1.8 * C + 32
prediction for 100 C: 212.8 F

Nobody typed 1.8 or 32 into the program. The model was told only that the answer is a straight line, and it chose the slope and the intercept that fit the examples best. The learned rule is close to the true one but not equal to it, because the examples were noisy, and it predicts 212.8 °F for boiling water instead of 212. That small gap is the whole story of machine learning in miniature: a model is only as good as the examples it learned from, and we must measure how good it is on cases it has not seen.

The map of the track

The track follows the topic order of a full machine-learning curriculum, from foundations to deployment. Each course has runnable examples, interactive labs, an exercise set and a mini project.

Category Course What it adds
Foundations ML Foundations (this course) AI vs ML vs DL, the lifecycle, the eight learning types, the math map
Data Data for ML data types, formats, sources, privacy and licensing, exploration and quality
Data Data Preparation Toolkit cleaning, imputation, scaling, encoding, feature engineering, imbalance, leakage-free splits
Models & training Classical ML Algorithms regression, trees, ensembles, SVM, kNN, clustering, PCA
Models & training Training, Evaluation & Improvement the training loop, losses, optimisers, metrics, validation, diagnosis
Models & training Training Strategies transfer learning, fine-tuning, semi-supervised, active, online and distributed training
Deep learning Deep Learning with PyTorch neural networks from NumPy to PyTorch, CNNs, RNNs, transformers
Deep learning Computer Vision images, detection, segmentation, tracking
Deep learning NLP, Transformers & LLMs tokenisation, embeddings, attention, fine-tuning LLMs
Production Deployment & MLOps serving, pipelines, experiment tracking, monitoring, drift
Production ML Projects fifteen end-to-end builds

How this course is organised

  1. Getting started: this page and a tour of the Python tools, including how the code on this site runs.
  2. AI, ML and deep learning: the definitions, the vocabulary (model, parameter, loss), how learned programs differ from written ones, applications, the lifecycle, and the difference between training and inference.
  3. Types of machine learning: one lesson each for supervised, unsupervised, semi-supervised, self-supervised, reinforcement, online, batch and active learning, then a guide for choosing among them.
  4. Before you go further: a map of the math you will need, linked to the Mathematics lessons on this site, and ten principles for studying and practising ML.
  5. Practice: exercises over the whole course and a mini project that builds a complete classifier, from raw table to saved model.

What you should already know

  • Python: functions, lists, dictionaries, loops and imports, as in the Python course. You do not need to know NumPy or scikit-learn yet; the next lesson introduces what this course uses.
  • School algebra: a straight line y=wx+by = wx + b, powers and the idea of an average. Anything beyond that is explained where it appears, with links to the full Mathematics lessons.

If you prefer to start with a quick hands-on tour before the theory, the Machine Learning course walks through scikit-learn one algorithm at a time, and Generative AI & LLMs shows how to use large language models. This track goes deeper and covers the whole engineering lifecycle.

How to work through the lessons

  • Run every example. Click Run, then change something and run it again: a seed, a number of samples, a parameter. The output under each example is exactly what the code prints, so you can compare.
  • Play with the labs. Some lessons contain interactive labs with sliders. Every number they show is computed from the data on screen.
  • Answer the questions. Each lesson ends with practice problems (answers hidden in collapsible boxes) and a short quiz. All quizzes of the course are also collected on the course quiz page.

Test yourself

In the thermometer example, where did the numbers 1.808 and 32.021 come from?

  1. They were typed into the program
  2. The model chose them to fit the seven examples
  3. They are the true conversion constants
  4. They come from scikit-learn's default settings

Why is the learned slope 1.808 instead of exactly 1.8?

  1. Linear regression is always slightly wrong
  2. The examples contain small measurement errors
  3. Seven points are too many
  4. The intercept was fixed in advance

Which course of the track teaches imputation, scaling and leakage-free splits?

  1. ML Foundations
  2. Data Preparation Toolkit
  3. Deep Learning with PyTorch
  4. Deployment & MLOps