HM LABS / 006
Binary search
Step through a sorted array and observe the search interval.
0215293134185236317428569721091
Interval [0, 10] · mid=5 · a[mid]=23 · search right
Comparisons shown: 1 / 4
Other experiments
Sigmoid function ↗
Explore the effect of weight and bias on a logistic curve.
Gradient descent ↗
Observe how the learning rate changes convergence on a quadratic loss.
Neural network ↗
Trace a forward pass through a fixed 2–2–1 network.
Embedding space ↗
Rank synthetic 2D vectors by cosine similarity.
Self-attention ↗
Compute scaled dot-product attention over three synthetic tokens.