Does split training data into training/validation?

I’m going through the course right now and the model training doesn’t seem to take that into account. Is there a reason why the code doesn’t look at the performance on a validation dataset while it’s training?

1 Like

Take a look at the model data objects in the library. They essentially wrap data loaders for training, validation, and test sets. The split is usually specified by an array of indexes, in terms of what’s in the validation set, but not always. Performance during training is always evaluated on the validation set.

Can you point me to the source code please? Much appreciated!

Hey @maxmatical

Depending on your application you have to look up the right file of the fastai library (

There are several ways to get your validation dataset (this list is not exhaustive):

Best regards