All visualizations
Interactive explainers from your first line-fit to neural networks. Search by name, or filter by topic and difficulty.
What Is a Model?
A model is a function fit to data to make predictions.
FoundationsBeginner⚡Loss Functions
Loss measures how wrong a prediction is.
FoundationsBeginner⚡Gradient Descent
Iteratively step downhill on the loss surface.
FoundationsIntermediate⚡Optimizers (SGD · Momentum · Adam)
Race SGD, Momentum, and Adam down the same loss surface.
FoundationsIntermediate⚡Overfitting & Underfitting
Watch train and test error form the classic U as complexity grows.
FoundationsBeginner⚡Linear Regression
Fit the best straight line through data.
RegressionBeginner⚡Polynomial Regression
Fit curves by adding polynomial features.
RegressionBeginner⚡Bias–Variance Tradeoff
Balance underfitting against overfitting.
RegressionIntermediate⚡Ridge Regression (L2)
Shrink coefficients toward zero to reduce variance.
RegressionIntermediate⚡Lasso Regression (L1)
Drive some coefficients exactly to zero for feature selection.
RegressionIntermediate⚡Elastic Net
Blend L1 and L2 penalties to get the best of both.
RegressionAdvanced⚡Logistic Regression
Predict class probabilities with an S-shaped curve.
ClassificationBeginner⚡K-Nearest Neighbors
Classify by majority vote of nearest neighbors.
ClassificationBeginner⚡Decision Boundaries
One dataset, four classifiers, four boundaries — side by side.
ClassificationIntermediate⚡Naive Bayes
Classify using Bayes’ rule and a strong independence assumption.
ClassificationIntermediate⚡Decision Tree
Split the data with a sequence of yes/no questions.
ClassificationBeginner⚡Support Vector Machine
Find the boundary with the widest margin between classes.
ClassificationIntermediate⚡The Kernel Trick
Separate non-linear data by lifting it into higher dimensions.
ClassificationAdvanced⚡Softmax & Multiclass
Turn raw scores into class probabilities that sum to one.
ClassificationIntermediate⚡Bagging
Average many models trained on bootstrap samples.
EnsemblesIntermediate⚡Random Forest
Bag decision trees with random feature subsets.
EnsemblesIntermediate⚡AdaBoost
Chain weak learners, each fixing the last one’s mistakes.
EnsemblesAdvanced⚡Gradient Boosting
Fit each new tree to the residual errors of the last.
EnsemblesAdvanced⚡K-Means Clustering
Cluster by iterating assign-to-nearest-center then move-center.
Unsupervised & Dim. ReductionBeginner⚡Hierarchical Clustering
Build a tree of clusters by repeatedly merging the closest pair.
Unsupervised & Dim. ReductionIntermediate⚡DBSCAN
Cluster by density; label sparse points as noise.
Unsupervised & Dim. ReductionIntermediate⚡Gaussian Mixture Models (EM)
Soft-cluster data as a blend of Gaussian blobs via EM.
Unsupervised & Dim. ReductionAdvanced⚡Principal Component Analysis
Project data onto the directions of greatest variance.
Unsupervised & Dim. ReductionIntermediate⚡t-SNE
Embed high-dimensional data in 2D preserving local neighborhoods.
Unsupervised & Dim. ReductionAdvanced⚡UMAP
Fast manifold embedding preserving local and some global structure.
Unsupervised & Dim. ReductionAdvanced⚡Feature Scaling
Put features on the same scale so no one dominates.
Data Prep & Model EvaluationBeginner⚡Encoding Categorical Features
Turn categories into numbers models can use.
Data Prep & Model EvaluationBeginner⚡Train/Test Split
Hold out data to measure real generalization.
Data Prep & Model EvaluationBeginner⚡Cross-Validation
Rotate the holdout set across k folds for a stable estimate.
Data Prep & Model EvaluationIntermediate⚡Confusion Matrix
Break predictions into true/false positives and negatives.
Data Prep & Model EvaluationBeginner⚡Precision, Recall & F1
Trade off catching positives against being right about them.
Data Prep & Model EvaluationIntermediate⚡ROC Curves & AUC
Visualize the full threshold tradeoff in one curve.
Data Prep & Model EvaluationIntermediate⚡The Decision Threshold
Choosing the cut-off is about consequences, not a fixed 0.5.
Data Prep & Model EvaluationIntermediate⚡The Perceptron
The original learning neuron: a linear threshold unit.
Neural NetworksIntermediate⚡A Single Neuron
Weights, bias, and an activation function in one unit.
Neural NetworksIntermediate⚡Activation Functions
The nonlinearity that lets networks bend.
Neural NetworksIntermediate⚡Multilayer Perceptron
Stack neurons into layers to learn nonlinear boundaries.
Neural NetworksAdvanced⚡Forward Propagation
Push inputs through the layers to compute a prediction.
Neural NetworksAdvanced⚡Backpropagation
Propagate error gradients backward to update every weight.
Neural NetworksAdvanced⚡