The math behind the models, worked out.

Here, math meets applied AI. These lessons run a real model in your browser and show every number it computes, from the first matrix product to the final prediction; the talks are where I presented the work.

A real Transformer running in your browser, small enough that every number is on screen. Follow one input through each matrix product, softmax and LayerNorm to a prediction, then watch backpropagation and Adam train all 227 weights. Built from the model in my M.S. defense.

Linear algebraSelf-attentionSoftmaxBackpropAdam≈ 30 min
Start the module →

② One matrix product, entry by entry

X
0.200.11−0.260.540.19−0.020.920.280.221.310.360.38
·
Wₑ
−0.09−0.630.24−0.59−0.03−0.04−0.02−0.15−0.35−0.16−0.15−0.61
=
E
−0.20−0.230.590.73−0.31−0.490.640.37−0.43−0.780.69−0.01−0.52−1.050.75−0.35

Et, d4 = −0.77 + −0.06 + −0.23 + bias = −0.35

⑤ Attention, after training

A₁
0.970.010.010.010.990.010.000.000.990.010.000.000.990.010.000.00

Head 1: the survey moment puts 98.8% of its weight on t−45, which is what the warming-trend term of the rule needs.

⑬ Training, 55 epochs

60%80%100%
epoch 155

Validation accuracy 66% → 98.3% · “Warming afternoon”: Warm 19% → 99.6%

Real numbers from the module's own model · 227 weights · predicts Cool / Neutral / Warm

More modules are on the way.