I've been trying to code a program that uses the softmax activation function in the middle.
Right now, I have a list of probabilities like this:
P[0.10,0.25,0.60,0.05]
The sum of all the variables in P is always 1.
I wanted a way to pick the index of the list given the probability attached to it. Or, in other words, a function that returned
0 - 10% of the time
1 - 25% of the time
2 - 60% of the time
3 - 5% of the time
I've absolutely no idea where to start on this. Any help would be appreciated. :)