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
import random probs = [0.1, 0.25, 0.6, 0.05] r = random.random() index = 0 while(r >= 0 and index < len(probs)): r -= probs[index] index += 1 print index - 1