scvi.train.SaveBestState#
- class scvi.train.SaveBestState(monitor='elbo_validation', mode='min', verbose=False, period=1)[source]#
Bases:
Callback
DEPRECATED
Save the best module state and restore into model.- Parameters:
Examples
from scvi.train import Trainer from scvi.train import SaveBestState
Notes
- Lifecycle: deprecated in v1.2 and to be removed in v1.3. Please use
SaveCheckpoint
instead.
Attributes table#
Methods table#
|
|
|
Called when the train ends. |
|
Called when the train begins. |
|
Called when the val epoch ends. |