Skip to content

Commit 39b7e76

Browse files
committed
lr set to 0.003
1 parent 5313518 commit 39b7e76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chebai/models/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
val_metrics: Optional[torch.nn.Module] = None,
4343
test_metrics: Optional[torch.nn.Module] = None,
4444
pass_loss_kwargs: bool = True,
45-
optimizer_kwargs: Optional[Dict[str, Any]] = {"lr":0.003},
45+
optimizer_kwargs: Optional[Dict[str, Any]] = None,
4646
exclude_hyperparameter_logging: Optional[Iterable[str]] = None,
4747
**kwargs,
4848
):
@@ -70,6 +70,7 @@ def __init__(
7070

7171
if optimizer_kwargs:
7272
self.optimizer_kwargs = optimizer_kwargs
73+
self.optimizer_kwargs["lr"] = 0.003
7374
else:
7475
self.optimizer_kwargs = dict()
7576
self.train_metrics = train_metrics

0 commit comments

Comments
 (0)