Debugging
Hannah supports several debugging tools.
Trainer Debugging flags:
Most of the lightning trainer debug flags are usable through the hydra
configs using trainer.flag name
The most important ones are:
trainer.fast_dev_run=True
This provides a kind of unit test for the model by running one single batch of training, validation and test on the model.
trainer.overfit_batches=0.01
This tests if the model can overfit a small percentage (0.01) of the dataset. A good model should be able reach almost 100 percent accuracy very quickly.
trainer.limit_*_batches
This limits the amount of batches used for training. e.g.:
hannah-train trainer.limit_train_batches=0.1 trainer.limit_val_batches=0.1 trainer.limit_test_batches=0.1
Limits the training to 10 percent of available batches for train, validation and test.