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· 8 min
What is machine learning? The 5 types of learning explained
How a model learns· 7 min
What is a perceptron? From the original perceptron to the modern neuron
How a model learns· 6 min
Linear regression from scratch in PyTorch
How a model learns· 13 min
What is a loss function? MSE, cross-entropy, and when to use which
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· 6 min
What is gradient descent? Explained step by step
How a model learns· 5 min
What is backpropagation? Explained with a tiny network
How a model learns· 8 min
The PyTorch training loop explained, with Dataset and DataLoader
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· 7 min
Softmax explained: probabilities, model confidence, and the stable softmax trick
How a model learns· 5 min
Multi-class vs multi-label classification: softmax vs sigmoid outputs
Neural networks
Neural networks· 8 min
What is a neural network? The multilayer perceptron explained
Neural networks· 6 min
The universal approximation theorem explained (and what it does not promise)
Neural networks· 6 min
Parameters vs hyperparameters in machine learning
Neural networks· 6 min
Activation functions roadmap: step, sigmoid, tanh, ReLU, Leaky ReLU, GELU
Neural networks· 8 min
Weight initialization explained: Xavier vs He (Kaiming) vs orthogonal
Neural networks· 7 min
Vanishing and exploding gradients, and how gradient clipping helps
Neural networks· 8 min
Dying ReLU: what dead neurons are and how to fix them
Optimization
Optimization· 7 min
Machine learning optimizers explained: SGD, momentum, RMSProp, Adam, AdamW
Optimization· 5 min
What is the Adam optimizer? Explained step by step
Optimization· 7 min
Batch vs stochastic vs mini-batch gradient descent, and how to choose a batch size
Optimization· 6 min
What is a learning rate, and how do you pick one?
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
Optimization· 9 min
How to save and resume training in PyTorch (checkpoints)
Optimization· 8 min
How to make PyTorch training reproducible: seeds, determinism, and what still varies
Generalization and regularization
Generalization and regularization· 6 min
Overfitting vs underfitting: how to tell which one you have, and how to fix it
Generalization and regularization· 10 min
How to read a loss curve: training vs validation loss
Generalization and regularization· 7 min
Bias-variance tradeoff explained with pictures
Generalization and regularization· 8 min
How much data do you need to train a model?
Generalization and regularization· 7 min
The curse of dimensionality explained
Generalization and regularization· 7 min
Double descent explained
Generalization and regularization· 6 min
Regularization explained: L1, L2, dropout, and early stopping
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· 5 min
Label smoothing explained
Generalization and regularization· 7 min
Hyperparameter tuning: grid search vs random search
Evaluation
Evaluation· 7 min
Data leakage in machine learning: examples and how to prevent it
Evaluation· 5 min
Cross-validation explained: k-fold, stratified, and when not to use it
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
Evaluation· 8 min
Regression metrics: MAE, RMSE, R², and MAPE
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
How to measure model size and speed: parameters, FLOPs, latency, throughput, memory
Evaluation· 6 min
ML model monitoring after deployment: data drift and when to retrain
Evaluation· 7 min
A step-by-step workflow for improving a machine learning model
Evaluation· 7 min
My loss is not decreasing: a checklist
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 a model learns· 7 min
What is a perceptron? From the original perceptron to the modern neuron
How a model learns· 8 min
What is machine learning? The 5 types of learning explained
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
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
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
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
No posts match your search.