first commit of RBM contrastive divergence that is coherent