Skip to content

Commit

Permalink
[UserWarning] Eliminating the use of the deprecated verbose paramet…
Browse files Browse the repository at this point in the history
…er. (#7812)
  • Loading branch information
drivanov authored Oct 10, 2024
1 parent 0dc0d57 commit 31115ae
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/pytorch/ogb/directional_GSN/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def train(dataset, params):

optimizer = optim.Adam(model.parameters(), lr=0.0008, weight_decay=1e-5)
scheduler = optim.lr_scheduler.ReduceLROnPlateau(
optimizer, mode="min", factor=0.8, patience=8, verbose=True
optimizer, mode="min", factor=0.8, patience=8
)

epoch_train_losses, epoch_val_losses = [], []
Expand Down
1 change: 0 additions & 1 deletion examples/pytorch/ogb/ogbn-arxiv/gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def run(
mode="min",
factor=0.5,
patience=100,
verbose=True,
min_lr=1e-3,
)

Expand Down
1 change: 0 additions & 1 deletion examples/pytorch/ogb/ogbn-products/gat/gat.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ def run(
mode="max",
factor=0.7,
patience=20,
verbose=True,
min_lr=1e-4,
)

Expand Down
1 change: 0 additions & 1 deletion examples/pytorch/ogb/ogbn-products/mlp/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ def run(
mode="max",
factor=0.7,
patience=20,
verbose=True,
min_lr=1e-4,
)

Expand Down
2 changes: 1 addition & 1 deletion examples/pytorch/ogb/ogbn-proteins/gat.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def run(
model.parameters(), lr=args.lr, weight_decay=args.wd
)
lr_scheduler = optim.lr_scheduler.ReduceLROnPlateau(
optimizer, mode="max", factor=0.75, patience=50, verbose=True
optimizer, mode="max", factor=0.75, patience=50
)

total_time = 0
Expand Down

0 comments on commit 31115ae

Please sign in to comment.