QuiddityML

Blog

ML concepts, explained so they stick

Plain-language guides to machine learning, one idea at a time, with the math and the code side by side.

Start here

Browse by track

All posts

Images and vision data· 10 min Color spaces explained: RGB vs BGR vs HSV, and white balance Images and vision data· 12 min How a camera makes an image: lens, sensor, exposure, and the ISP pipeline Images and vision data· 11 min Image normalization for deep learning: value ranges, mean and std, histograms Images and vision data· 7 min A short history of computer vision: from hand-written rules to learning from photos Images and vision data· 15 min How images are stored as tensors: pixels, channels, and shapes (HWC vs CHW) Images and vision data· 11 min What is computer vision? Images as measurements, and what a vision system outputs Post-training and alignment· 8 min DPO vs RLHF Post-training and alignment· 8 min How LLM alignment is evaluated, and what is still unsolved Post-training and alignment· 12 min RLHF explained Post-training and alignment· 7 min Instruction tuning and supervised fine-tuning (SFT) explained Post-training and alignment· 6 min How ChatGPT-style assistants are trained: pretraining vs post-training Large language models· 6 min Why LLMs hallucinate, and their other failure modes Large language models· 6 min Emergent abilities in LLMs Large language models· 14 min How do LLMs work? Foundation models and pretraining explained Large language models· 7 min Scaling laws explained: parameters, data, and compute Transformer families· 10 min Fine-tuning vs transfer learning explained Transformer families· 11 min How to load a model with Hugging Face transformers Transformer families· 5 min Open-weight vs closed LLMs Transformer families· 6 min KV cache and grouped-query attention explained Transformer families· 9 min Masked language modeling explained: how BERT is trained Transformer families· 6 min What changed in transformers since the original: modern variants Attention and transformers· 13 min Build a small GPT from scratch in PyTorch Attention and transformers· 9 min Causal masking explained Transformer families· 12 min Encoder vs decoder vs encoder-decoder transformers (BERT, GPT, T5) Attention and transformers· 11 min Multi-head attention explained Attention and transformers· 13 min Positional encoding explained Attention and transformers· 15 min Self-attention explained step by step: queries, keys, and values Attention and transformers· 8 min How transformers work, explained for someone who has never seen one NLP tasks· 8 min Text generation tasks: translation, summarization, and open-ended generation Attention and transformers· 8 min What is attention in deep learning? Explained from the seq2seq bottleneck NLP tasks· 13 min Question answering in NLP: extractive vs generative NLP tasks· 7 min Retrieval and text ranking explained NLP tasks· 10 min Sentence embeddings and semantic similarity NLP tasks· 10 min Named entity recognition and part-of-speech tagging: token classification explained NLP tasks· 7 min Natural language inference (NLI) explained NLP tasks· 10 min Text classification explained: sentiment, topic, and intent Language models and RNNs· 8 min Generalization vs memorization in language models NLP tasks· 14 min NLP tasks explained, and how to frame your problem as one Language models and RNNs· 8 min Teacher forcing and exposure bias explained Language models and RNNs· 8 min Beam search explained Language models and RNNs· 12 min LLM decoding strategies: greedy, sampling, top-k, top-p, and min-p Language models and RNNs· 6 min LLM temperature explained Language models and RNNs· 9 min Encoder-decoder (seq2seq) models explained Language models and RNNs· 10 min LSTM explained Language models and RNNs· 8 min LSTM vs GRU Language models and RNNs· 12 min How language models are trained: next-token prediction, from logits to loss Language models and RNNs· 6 min Perplexity explained Language models and RNNs· 14 min Recurrent neural networks (RNNs) explained, with backpropagation through time Word representations· 5 min Static vs contextual embeddings: why Word2Vec gives "bank" one vector Word representations· 10 min How to visualize and evaluate word embeddings: clustering, intrinsic and extrinsic evaluation Language models and RNNs· 12 min What is a language model? From bigrams to neural next-token prediction Word representations· 7 min Negative sampling and hierarchical softmax explained Word representations· 9 min Word2Vec explained: skip-gram vs CBOW Word representations· 8 min Word2Vec vs GloVe vs fastText Word representations· 8 min Bag of words, co-occurrence matrices, and PMI: count-based word vectors Word representations· 12 min How to turn words into numbers: integer encoding, one-hot, and dense vectors Word representations· 5 min What are word embeddings? Tokenization· 7 min BPE vs WordPiece vs Unigram tokenization Tokenization· 11 min How to use a Hugging Face tokenizer: special tokens, token IDs, padding, and batches Tokenization· 6 min Why LLMs miscount letters: tokenization quirks and non-English text Tokenization· 10 min Byte pair encoding (BPE) explained step by step, including byte-level BPE Text as data· 5 min Privacy and licensing: can you train a model on scraped text? Tokenization· 16 min What is tokenization in NLP? Word, character, and subword tokens Text as data· 6 min How to handle class imbalance in text classification Text as data· 10 min Data quality problems in NLP: duplicates, contamination, bias, and representativeness Text as data· 9 min Text preprocessing in NLP: normalization, stemming vs lemmatization, and stopwords Text as data· 8 min Data annotation for NLP: crowdsourcing vs experts, and inter-annotator agreement Text as data· 7 min How to build your own NLP dataset: selecting data, extracting text, documenting it Text as data· 7 min Where to find NLP datasets: Hugging Face Hub, Kaggle, and more What NLP is· 7 min A short history of NLP: from ELIZA to deep learning Text as data· 6 min Unicode and UTF-8 explained: how computers store text Text as data· 7 min Why text is hard data for machine learning Numerical computation· 4 min Exponential moving average (EMA) explained Numerical computation· 5 min The log-sum-exp trick explained: overflow, underflow, and adding logs What NLP is· 9 min What is NLP? Natural language processing explained Numerical computation· 5 min Floating-point numbers explained: float32, float64, and rounding errors Information theory· 7 min Mutual information explained Information theory· 9 min What is entropy in information theory? Probability and statistics· 5 min Bootstrap resampling explained Probability and statistics· 6 min Markov chain Monte Carlo (MCMC) explained Probability and statistics· 5 min The reparameterization trick explained Probability and statistics· 7 min Bayesian inference explained: priors, posteriors, and conjugate priors Probability and statistics· 6 min Bias and variance of an estimator, and why sample variance divides by n minus 1 Probability and statistics· 7 min Monte Carlo methods explained: Monte Carlo estimation, importance sampling, and rejection sampling Probability and statistics· 8 min Hypothesis testing and p-values: is model A really better than model B? Probability and statistics· 8 min MLE vs MAP estimation Probability and statistics· 7 min Standard error and confidence intervals explained Probability and statistics· 7 min CDF, percentiles, and quantiles explained Probability and statistics· 6 min Covariance vs correlation Probability and statistics· 8 min Expected value and variance explained, with conditional expectation Probability and statistics· 7 min Kernel density estimation explained Probability and statistics· 7 min The law of large numbers and the central limit theorem explained Probability and statistics· 8 min The multivariate Gaussian, covariance matrices, and Mahalanobis distance Probability and statistics· 10 min Common probability distributions in ML: Bernoulli, binomial, Poisson, Beta Probability and statistics· 5 min Degrees of freedom explained Probability and statistics· 6 min The Gaussian (normal) distribution explained Probability and statistics· 6 min Bayes' theorem explained with an example Probability and statistics· 5 min Dependent vs independent variables in machine learning Probability and statistics· 10 min Joint, marginal, and conditional probability explained, with independence Calculus and optimization· 10 min Convex functions explained (and why neural network losses are not convex) Calculus and optimization· 7 min Local minima and saddle points in deep learning Probability and statistics· 5 min Random variables and probability distributions explained: PMF vs PDF Calculus and optimization· 8 min Automatic differentiation explained: how autograd works Calculus and optimization· 8 min The Hessian matrix explained, and the eigenvalue test for minima What NLP is· 14 min How to learn NLP in 2026: a complete roadmap from text to LLMs Calculus and optimization· 7 min Taylor series for machine learning: linearization and why gradient descent works Calculus and optimization· 6 min The chain rule explained for machine learning Calculus and optimization· 9 min Matrix calculus for deep learning: the gradient of a linear layer, by hand Calculus and optimization· 5 min The Jacobian matrix explained Calculus and optimization· 6 min Derivatives for machine learning: limits, continuity, and the derivative Linear algebra· 6 min Einsum explained with examples (torch.einsum) Calculus and optimization· 6 min Partial derivatives and gradients explained Linear algebra· 5 min Broadcasting in NumPy and PyTorch explained Linear algebra· 6 min SVD explained: singular value decomposition and low-rank approximation Linear algebra· 5 min What is a tensor? Shapes, batches, and tensor operations Linear algebra· 5 min The condition number explained: why some problems are numerically unstable Linear algebra· 5 min Cosine similarity explained: the angle between two vectors Linear algebra· 5 min The dot product explained, and what it measures in machine learning Linear algebra· 6 min Eigenvalues and eigenvectors explained Linear algebra· 4 min Invariance vs equivariance, and why convolution is translation equivariant Linear algebra· 5 min Least squares explained: linear regression as a projection, and the normal equation Linear algebra· 7 min Orthogonality explained: orthogonal matrices, orthonormal bases, and projections Linear algebra· 6 min Positive definite matrices explained, with the Cholesky and QR factorizations Linear algebra· 6 min Vector norms and distances: L1, L2, Euclidean vs Manhattan Linear algebra· 7 min Determinant, trace and inverse: when a matrix is singular Linear algebra· 7 min Solving systems of linear equations with Gaussian elimination Linear algebra· 5 min Hadamard product vs matrix multiplication: * vs @ in PyTorch Linear algebra· 7 min Matrix multiplication explained: the linear map view, dot products and outer products Linear algebra· 5 min Multicollinearity explained: why correlated features break linear regression Linear algebra· 6 min Rank, column space and null space explained Math toolkit and notation· 3 min Big-O notation for machine learning Math toolkit and notation· 6 min Exponents and logarithms for machine learning Math toolkit and notation· 7 min How to read the math notation in ML papers Math toolkit and notation· 4 min Sine and cosine for machine learning Linear algebra· 4 min Span, basis and linear independence explained Linear algebra· 5 min Vectors and matrices for machine learning Evaluation· 7 min A step-by-step workflow for improving a machine learning model Evaluation· 6 min ML model monitoring after deployment: data drift and when to retrain Evaluation· 8 min How to measure model size and speed: parameters, FLOPs, latency, throughput, memory Evaluation· 7 min How to choose an evaluation metric for your model Evaluation· 8 min Loss is NaN: the common causes and fixes Evaluation· 8 min Regression metrics: MAE, RMSE, R², and MAPE Evaluation· 5 min Cross-validation explained: k-fold, stratified, and when not to use it Evaluation· 7 min Data leakage in machine learning: examples and how to prevent it Generalization and regularization· 7 min Hyperparameter tuning: grid search vs random search Evaluation· 11 min Precision, recall, and F1 score explained, with the confusion matrix Evaluation· 7 min ROC curve and AUC explained, and when to use PR AUC instead Generalization and regularization· 5 min Label smoothing explained Generalization and regularization· 6 min Weight decay vs L2 regularization: why they differ under Adam Generalization and regularization· 5 min What is dropout and why does it work? Generalization and regularization· 7 min The curse of dimensionality explained Generalization and regularization· 7 min Double descent explained Generalization and regularization· 8 min How much data do you need to train a model? Generalization and regularization· 10 min How to read a loss curve: training vs validation loss Optimization· 8 min How to make PyTorch training reproducible: seeds, determinism, and what still varies Optimization· 9 min How to save and resume training in PyTorch (checkpoints) Optimization· 7 min Batch vs stochastic vs mini-batch gradient descent, and how to choose a batch size Optimization· 12 min Learning rate schedules explained: warmup, cosine annealing, step decay, and ReduceLROnPlateau Optimization· 7 min Train, validation, and test sets: what each is for and how to split Neural networks· 8 min Dying ReLU: what dead neurons are and how to fix them Neural networks· 7 min Vanishing and exploding gradients, and how gradient clipping helps Neural networks· 8 min Weight initialization explained: Xavier vs He (Kaiming) vs orthogonal Neural networks· 6 min Parameters vs hyperparameters in machine learning Neural networks· 6 min The universal approximation theorem explained (and what it does not promise) Neural networks· 8 min What is a neural network? The multilayer perceptron explained How a model learns· 9 min Logistic regression explained: sigmoid, binary cross-entropy, and why it is a one-layer neural network How a model learns· 5 min Multi-class vs multi-label classification: softmax vs sigmoid outputs How a model learns· 7 min Softmax explained: probabilities, model confidence, and the stable softmax trick How a model learns· 8 min Entropy, cross-entropy, and KL divergence explained How a model learns· 8 min Maximum likelihood estimation explained: where MSE and cross-entropy come from How a model learns· 8 min The PyTorch training loop explained, with Dataset and DataLoader How a model learns· 6 min Linear regression from scratch in PyTorch How to learn ML· 6 min Learning ML with Python: the libraries you need (NumPy, pandas, scikit-learn, PyTorch) and what each is for How a model learns· 7 min What is a perceptron? From the original perceptron to the modern neuron Interviews and careers· 19 min Machine learning interview questions for beginners, with answers How a model learns· 8 min What is machine learning? The 5 types of learning explained Interviews and careers· 7 min How to choose a machine learning project How a model learns· 13 min What is a loss function? MSE, cross-entropy, and when to use which Neural networks· 6 min Activation functions roadmap: step, sigmoid, tanh, ReLU, Leaky ReLU, GELU Generalization and regularization· 7 min Bias-variance tradeoff explained with pictures Interviews and careers· 7 min What ML projects actually get you hired in 2026? Generalization and regularization· 6 min Regularization explained: L1, L2, dropout, and early stopping How a model learns· 5 min What is backpropagation? Explained with a tiny network How to learn ML· 5 min How much math do you actually need for machine learning? Optimization· 7 min Machine learning optimizers explained: SGD, momentum, RMSProp, Adam, AdamW Generalization and regularization· 6 min Overfitting vs underfitting: how to tell which one you have, and how to fix it How to learn ML· 7 min How to learn machine learning effectively (and actually remember it) Evaluation· 7 min My loss is not decreasing: a checklist Optimization· 6 min What is a learning rate, and how do you pick one? How a model learns· 6 min What is gradient descent? Explained step by step Optimization· 5 min What is the Adam optimizer? Explained step by step How to learn ML· 14 min How to learn machine learning in 2026: a complete roadmap for self-taught learners