HM LABS / 003
Neural network
Trace a forward pass through a fixed 2–2–1 network.
h₁ = σ(1.2x₁ − 0.8x₂ + 0.2)
h₂ = σ(−0.7x₁ + 1.4x₂ − 0.1)
ŷ = σ(1.5h₁ − 1.1h₂ + 0.1)
h₂ = σ(−0.7x₁ + 1.4x₂ − 0.1)
ŷ = σ(1.5h₁ − 1.1h₂ + 0.1)
h₁ = 0.731 · h₂ = 0.475 · ŷ = 0.662
Fixed weights, no training. The output is not a calibrated probability.
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.
Embedding space ↗
Rank synthetic 2D vectors by cosine similarity.
Self-attention ↗
Compute scaled dot-product attention over three synthetic tokens.
Binary search ↗
Step through a sorted array and observe the search interval.