We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5313518 commit 39b7e76Copy full SHA for 39b7e76
chebai/models/base.py
@@ -42,7 +42,7 @@ def __init__(
42
val_metrics: Optional[torch.nn.Module] = None,
43
test_metrics: Optional[torch.nn.Module] = None,
44
pass_loss_kwargs: bool = True,
45
- optimizer_kwargs: Optional[Dict[str, Any]] = {"lr":0.003},
+ optimizer_kwargs: Optional[Dict[str, Any]] = None,
46
exclude_hyperparameter_logging: Optional[Iterable[str]] = None,
47
**kwargs,
48
):
@@ -70,6 +70,7 @@ def __init__(
70
71
if optimizer_kwargs:
72
self.optimizer_kwargs = optimizer_kwargs
73
+ self.optimizer_kwargs["lr"] = 0.003
74
else:
75
self.optimizer_kwargs = dict()
76
self.train_metrics = train_metrics
0 commit comments