cleaned up the variable naming in RBM contrastive divergence method