Stochastic neural networks