Skip to content

Commit 5313518

Browse files
committed
increase lr
1 parent 5bfae81 commit 5313518

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

chebai/models/base.py

Lines changed: 1 addition & 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]] = None,
45+
optimizer_kwargs: Optional[Dict[str, Any]] = {"lr":0.003},
4646
exclude_hyperparameter_logging: Optional[Iterable[str]] = None,
4747
**kwargs,
4848
):

extras/adamh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ def new_create_weight(path_to_split="/home/programmer/Bachelorarbeit/split/split
3030
for row in reader:
3131
if (row[1] == "train") and i > 0:
3232
# print(row[0])
33-
weights[row[0]] = [1/1528 * 160716 ]* 1528
33+
weights[row[0]] = [1/(1528 * 160715)]* 1528
3434
# print(row[0])
3535
i = i + 1
3636
print(len(weights))
37-
torch.save(weights, "../../weights/init_mh.pt")
37+
torch.save(weights, "/home/programmer/Bachelorarbeit/weights/init_mh.pt")
3838

3939

4040
def add_train_weights(ids):

0 commit comments

Comments
 (0)