Uniform convergence of empirical and predictive measures