I have a deterministic neural network and I want to make it stochastic.
Two questions:
- I'm not sure if it means that I need to use the result of the sigmoid to determine the probabilities for the output, or if the probabilities are simply the neurons input, and a sigmoid function is now redundant.
- How to do that efficiently with numpy? I know how to generate random bits, but how do you do that with given probabilities inside a large array? (My current sigmoid function is tanh if it matters)