Bayesian nonparametric prediction: from species to features