Unsupervised model-free representation learning