SaveBest
(savename
:Union
[str
, Path
], auto_reload
:bool
=True
, loss_is_meaned
:bool
=True
) :: AbsCallback
Tracks validation loss during training and automatically saves a copy of the weights to indicated file whenever validation loss decreases.
Losses are assumed to be averaged and will be re-averaged over the epoch unless loss_is_meaned
is false.