Skip to content

Commit

Permalink
narrow range of lr-finder, lessen skip of suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ourownstory committed Aug 30, 2024
1 parent bde9b39 commit 2ff07d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neuralprophet/utils_lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def smooth_loss_and_suggest(lr_finder, window=10):
)
raise
# get the tuner's default suggestion
suggestion_default = lr_finder.suggestion(skip_begin=20, skip_end=10)
suggestion_default = lr_finder.suggestion(skip_begin=10, skip_end=3)

log.info(f"Learning rate finder ---- default suggestion: {suggestion_default}")
log.info(f"Learning rate finder ---- steepest: {suggestion_steepest}")
Expand Down Expand Up @@ -280,8 +280,8 @@ def find_learning_rate(model, loader, trainer, train_epochs):
)
# num_training = num_batches
lr_finder_args = {
"min_lr": 1e-7,
"max_lr": 1e1,
"min_lr": 1e-5,
"max_lr": 1.0,
"num_training": num_training,
"early_stop_threshold": None,
"mode": "exponential",
Expand Down

0 comments on commit 2ff07d2

Please sign in to comment.