Is the eval dataset shuffled in the Trainer class?

When training using the Trainer object, I know that the training dataset is shuffled after each epoch. So I was wondering if the same happens with the eval dataset. In my mind, there is no motivation to shuffle it.

Any resolution of this ? I see the SequentailSampler being used on id _get_eval_sampler in Trainer but not sure if the data gets shuffled.

1 Like