Unsupervised representation learning with recognition-parametrised probabilistic models