stochastic neural networks in R