Exercises / math
Attention weights
weights(scores) is softmax of a score list. Print weights for [2.0, 0.0] rounded to 3 decimals.
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / math
weights(scores) is softmax of a score list. Print weights for [2.0, 0.0] rounded to 3 decimals.
Run to execute this in your browser. Nothing is sent to a server.