5/31
Part 1 of 6 · Derive the two gradientsLearn and do
One entry of B reaches one column of Y
feeds column of , and in each it's multiplied by :
A (2, 3)120013
B (3, 2)Y = A @ B5-123
dY10-12
Tap an entry of B to nudge it.
B[0, 1] feeds column 1 of Y and nothing else, each entry times column 0 of A, [1, 0]. So dB[0, 1] = column 0 of A · column 1 of dY = (1)(0) + (0)(2) = 0.
Add up its effect down the column:
That's column of times column of . Column of is row of , so it's entry of .
In the editor, write dB_entry(A, dY, p, j): that sum down column j, as a loop.