Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingPumba committed Sep 13, 2024
1 parent 7512a7e commit e6d278c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iit/model_pairs/base_model_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def train(
del scheduler_kwargs['final_lr']

if "lr_lambda" not in scheduler_kwargs:
def linear_lr(step):
def linear_lr(step: int) -> float:
return 1 - (step / epochs) * (1 - final_lr / initial_lr)

scheduler_kwargs["lr_lambda"] = linear_lr
Expand Down

0 comments on commit e6d278c

Please sign in to comment.