AI & Security
AI & Machine Learning
Machine learning from first principles: the maths you actually need, core supervised and unsupervised algorithms, neural networks and backpropagation, CNNs and RNNs, attention and transformers, large language models, embeddings and retrieval-augmented generation, and running ML in production.
4 modules 14 lessons ~1 h of reading
Start learning
0/14 completed
01
Foundations
4 lessons- 1What Is Machine Learning?The big picture of AI and machine learning — learning from data instead of rules, supervised, unsupervised, self-supervised and reinforcement learning, the ML workflow, features and labels, generalisation, and where deep learning and LLMs fit.beginner4 min
- 2Math for Machine LearningThe essential maths behind ML — vectors, matrices and matrix multiplication, dot products and similarity, derivatives, gradients and the chain rule, probability distributions, Bayes' theorem, expectation and variance, and maximum likelihood — with NumPy examples.intermediate4 min
- 3Linear & Logistic RegressionThe two foundational models — linear regression with mean squared error and the normal equation, logistic regression with the sigmoid and cross-entropy, decision boundaries, softmax for multiple classes, feature scaling, regularisation (L1/L2), and interpreting coefficients.intermediate4 min
- 4Gradient Descent & OptimisersHow models learn — loss landscapes, batch, stochastic and mini-batch gradient descent, the learning rate, momentum, RMSProp and Adam/AdamW, learning-rate schedules and warm-up, local minima and saddle points, and practical tuning tips.intermediate5 min
02
Classical ML
2 lessons- 5Classical ML AlgorithmsThe workhorse algorithms beyond linear models — k-nearest neighbours, Naive Bayes, decision trees, random forests, gradient boosting (XGBoost, LightGBM), support vector machines, k-means clustering, PCA, and how to choose among them.intermediate5 min
- 6Model EvaluationMeasuring models honestly — train/validation/test splits, cross-validation, data leakage, the confusion matrix, accuracy, precision, recall, F1, ROC-AUC and PR-AUC, regression metrics, class imbalance, the bias–variance trade-off, learning curves, and hyperparameter tuning.intermediate6 min
03
Deep Learning
4 lessons- 7Neural NetworksFrom a single neuron to deep networks — perceptrons, layers, activation functions (ReLU, GELU, sigmoid, softmax), why depth and non-linearity matter, the universal approximation theorem, initialisation, normalisation, dropout, and building and training an MLP in PyTorch.intermediate4 min
- 8BackpropagationHow neural networks compute gradients — computational graphs, the chain rule applied backwards, a worked numeric example, vectorised backprop for layers, automatic differentiation (reverse mode) in PyTorch, a tiny autograd engine, and vanishing/exploding gradients.advanced5 min
- 9Convolutional Neural NetworksHow CNNs see — convolution as sliding filters, feature maps, stride and padding, pooling, receptive fields, the classic architectures (LeNet, AlexNet, VGG, ResNet), transfer learning, data augmentation, and computer-vision tasks beyond classification.intermediate4 min
- 10RNNs & Sequence ModelsModelling sequences — tokenisation and word embeddings, recurrent neural networks and backpropagation through time, vanishing gradients, LSTMs and GRUs, sequence-to-sequence encoder–decoder models, the bottleneck that motivated attention, and modern state-space models.intermediate4 min
04
Modern AI
4 lessons- 11Attention & TransformersThe architecture behind modern AI — queries, keys and values, scaled dot-product attention, self-attention, multi-head attention, positional encodings, the transformer block (residuals, layer norm, feed-forward), encoder vs decoder models, causal masking, and the cost of attention.advanced5 min
- 12Large Language ModelsHow LLMs work and are built — next-token prediction, pretraining at scale and scaling laws, tokens and context windows, sampling (temperature, top-p), instruction tuning, RLHF and preference optimisation, prompting, tool use and agents, reasoning models, hallucinations, inference optimisation, and evaluation.advanced7 min
- 13Embeddings & RAGSemantic search and retrieval-augmented generation — embedding models, cosine similarity, vector databases and approximate nearest-neighbour indexes (HNSW, IVF), chunking, hybrid search and re-ranking, the RAG pipeline, evaluation, and common failure modes.advanced5 min
- 14MLOpsTaking models to production and keeping them working — the ML lifecycle, data and feature pipelines, feature stores, experiment tracking and model registries, training pipelines, batch vs online serving, monitoring for data and concept drift, retraining, A/B testing, and LLMOps.intermediate5 min