scvi.core.trainers.trainer.EarlyStopping

class scvi.core.trainers.trainer.EarlyStopping(early_stopping_metric=None, save_best_state_metric=None, on='test_set', patience=15, threshold=3, benchmark=False, reduce_lr_on_plateau=False, lr_patience=10, lr_factor=0.5, scvi_data_loader_class=<class 'scvi.core.data_loaders.scvi_data_loader.ScviDataLoader'>)[source]

Methods

update(scalar)

update_state(scalar)