Exercises / math
Softmax
softmax(xs) returns a list of probabilities that sum to 1. Use math.exp. Print softmax([1, 1]) and softmax([10, 0]).
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / math
softmax(xs) returns a list of probabilities that sum to 1. Use math.exp. Print softmax([1, 1]) and softmax([10, 0]).
Run to execute this in your browser. Nothing is sent to a server.