code for rbm with noise code