parallel code for rbm update
clock for unsupervised learning and fine-tuning