Skip to content

Commit

Permalink
[fix] pass patience arg to EarlyStopping class (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
maexrakete authored Aug 27, 2024
1 parent c8e2e43 commit a6989b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def main(args):
scheduler = None

save_best_model = SaveBestModel()
early_stopping = EarlyStopping()
early_stopping = EarlyStopping(patience=args['patience'])

for epoch in range(start_epochs, NUM_EPOCHS):
train_loss_hist.reset()
Expand Down

0 comments on commit a6989b8

Please sign in to comment.