by CuriousSkeptic · 3y ago · 0 comments
Is there some reference table somewhere mapping more code idioms like this to equivalent nn representations?
Other idioms I can think of, in my words:
Softmax = take the maximum (but in a differentiable way)
tanh/sigmoid/relu = a switch. "activation"
cross entropy loss = average(-log(probability you gave to the right answer)). Averaged over the current batch you are training on for this step. (Sorry that is still quite mathy).
One other example would be how multi-head attention is implemented with a single matrix. You don’t actually create matrices for each of the N ‘heads’ separately. It’s a logical distinction