QuiddityML

ML Foundations

How models learn, neural networks, optimization, generalization, and evaluation. Posts are listed in the order the ideas build on each other.

How a model learns

How a model learns What is machine learning? The 5 types of learning explained Machine learning is a way to build software that learns its rules from examples instead of having them written by hand. This post explains how that works and why it can work on data the model has never seen, then walks through the five types of learning (supervised, unsupervised, semi-supervised, self-supervised, and reinforcement learning) with an example of each and how to pick between them. 24 September 2026 · 8 min read How a model learns What is a loss function? MSE, cross-entropy, and when to use which A loss function turns a model's predictions into one number that says how wrong they are, and training is the process of pushing that number down. This post explains why models need one, which loss to use for regression, binary, multi-class, and multi-label problems (and for a few other tasks), and how to use the loss on a proper validation split to evaluate a model. 23 September 2026 · 13 min read How a model learns What is gradient descent? Explained step by step Gradient descent is the procedure that trains almost every machine learning model. This post explains what it does, why the update has a minus sign, how the learning rate changes everything, and what the three lines of PyTorch that implement it are doing. 16 September 2026 · 6 min read How a model learns What is backpropagation? Explained with a tiny network Backpropagation is how a neural network works out which way to change each of its weights to reduce its error. This post computes it by hand on a network with two weights, shows why it runs backward, and checks the numbers against PyTorch. 21 September 2026 · 5 min read

Neural networks

Optimization

Generalization and regularization

Evaluation