Batched Predictors Generalize within Distribution