Northeastern University · CS 7150
Deep Learning class demos
Interactive visualizations and Jupyter notebooks used in lecture. Everything here lives in
github.com/CS7150/classdemos —
notebooks open straight into Colab, and the interactive pages run in the browser with nothing to install.
Interactive demos
Guides
Notebooks
Single neurons and what they can separate
The perceptron, its learning rule, and the limits of one linear threshold unit.
Perceptron Learning in 2D
Rosenblatt's algorithm on linearly separable 2D data, visualized step by step.
Fraction Linearly Separable
How quickly the share of boolean functions computable by one neuron collapses as inputs grow.
Logic Networks
McCulloch–Pitts neurons with a sign nonlinearity, wired into logic circuits.
XOR and the first hidden layer
What one layer cannot do, and what happens once you train two or more.
Learning XOR
A two-layer tanh network trained on the XOR truth table by hand-rolled gradient descent.
Learning XOR (batch variant)
The same network trained on the full truth table each step instead of one row at a time.
Learning Four-Layer XOR
A deeper net on XOR, checkerboard, and sine-wave targets, with a widget for the training run.
Rumelhart, Hinton & Williams Mirror
Reproduces the 1986 symmetry-detection experiment on all 64 six-bit patterns.
Training dynamics
Watching decision boundaries and loss surfaces move while a small network learns.
Two-Layer 2D Net Widget
An interactive two-layer ReLU classifier: hidden-unit lines and the boundary they compose.
Explore Two-Layer 2D Net
The same network with the training run scrubbable, for comparing optimizers and targets.
2D Optimization
Gradient descent on a small 2D classification problem, plotted alongside the decision boundary.
Backpropagation and loss functions
Derivatives by hand, and what different losses actually reward.
By-Hand Backpropagation
Build a computation graph from scratch and implement the forward and backward passes yourself.
Graph KL Loss
KL divergence, cross-entropy, MSE and L1 over the same softmax, graphed against each other.
Softmax Chart
The figure for turning a pair of logits into probabilities and comparing them to a target.
Convolution and vision
Convolution as a matrix, and the fully-connected versus convolutional comparison.
Toeplitz Convolutions
1D and 2D convolution written as Toeplitz matrices: shift equivariance, padding, parameter counts.
CIFAR-10 Classifier
Homework notebook: a fully-connected baseline on CIFAR-10, then a convolutional network.
Large pretrained models
Poking at CLIP and Stable Diffusion, and building the sample data they run on.
CLIP Doctor
Rank images by cosine similarity to text prompts using a pretrained CLIP ViT-B/32.
Diffusion
Take a Stable Diffusion pipeline apart and look at the networks inside it.
Data Set Maker
How the coco_humans sample set used by the other notebooks was built from COCO 2017.
Several notebooks import the small cs7150
helper package from this repository, and some use
baukit for their widgets.
· Repository