Learning data representations with RBMs