DBN trained as RBM by contrastive divergence