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
You can easily achieve this with numpy. It has a choice function which accepts the parameter of probabilities.
np.random.choice( ['pooh', 'rabbit', 'piglet', 'Christopher'], 5, p=[0.5, 0.1, 0.1, 0.3] )