Validation vs test data:
- Validation set: used actively during training to calculate and minimize loss.
- Test set: (at least in Fastai) it is used unlabeled, the assumption being that we need to predict on test data using our trained model.
Force GC (i.e. garbage collection) in Python:
learn = None import gc gc.collect()