Skip to content

Commit 06285dc

Browse files
committed
remove sandbox code
1 parent 1195427 commit 06285dc

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

questions/152_exponentialLR/solution.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,4 @@ def get_lr(self, epoch):
2727
current_lr = self.initial_lr * (self.gamma ** epoch)
2828

2929
# Round the learning rate to 4 decimal places
30-
return round(current_lr, 4)
31-
32-
33-
34-
35-
36-
scheduler = ExponentialLRScheduler(initial_lr=0.005, gamma=0.99)
37-
print(f"{scheduler.get_lr(epoch=0):.4f}\\n{scheduler.get_lr(epoch=10):.4f}\\n{scheduler.get_lr(epoch=20):.4f}")
30+
return round(current_lr, 4)

0 commit comments

Comments
 (0)