run contrastive divergence script