-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedOpen to be worked onOpen to be worked on
Description
Hi there,
thanks for the great library (I am using 0.7.5.). I am not following the bug report template as I'm not sure this is indeed a bug, or simply I cannot understand how early stopping is implemented. My code looks as follows:
early_stop_callback = EarlyStopping(
monitor='val_acc',
min_delta=0.0,
patience=80,
verbose=True,
mode=self.mode
)
trainer = Trainer(
early_stop_callback=early_stop_callback,
auto_select_gpus=True,
max_epochs=200,
terminate_on_nan=True,
show_progress_bar=True,
fast_dev_run=False,
gpus=1
)
As I understand it, the model should perform early stopping after AT LEAST 80 epochs have passed without improvement on the validation accuracy. However, in my case, early stopping happened at epoch 75. Is this how it should be?
As I said, I am not sure this is actually a bug or a choice (perhaps early stopping is implemented at the batch level?). If it is indeed a bug, I will work a reproducible example. Thank you!
i-zaitsev, Anjum48, HansBambel, felidz and haoyuan80sfelidz
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedOpen to be worked onOpen to be worked on