From 31115aece284d5eb92b9354acb6b84968e2759b7 Mon Sep 17 00:00:00 2001 From: Andrei Ivanov <32910461+drivanov@users.noreply.github.com> Date: Wed, 9 Oct 2024 22:25:54 -0700 Subject: [PATCH] [UserWarning] Eliminating the use of the deprecated `verbose` parameter. (#7812) --- examples/pytorch/ogb/directional_GSN/main.py | 2 +- examples/pytorch/ogb/ogbn-arxiv/gcn.py | 1 - examples/pytorch/ogb/ogbn-products/gat/gat.py | 1 - examples/pytorch/ogb/ogbn-products/mlp/mlp.py | 1 - examples/pytorch/ogb/ogbn-proteins/gat.py | 2 +- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/pytorch/ogb/directional_GSN/main.py b/examples/pytorch/ogb/directional_GSN/main.py index f4f1dc0aa961..559dee3569d0 100644 --- a/examples/pytorch/ogb/directional_GSN/main.py +++ b/examples/pytorch/ogb/directional_GSN/main.py @@ -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 = [], [] diff --git a/examples/pytorch/ogb/ogbn-arxiv/gcn.py b/examples/pytorch/ogb/ogbn-arxiv/gcn.py index c30b4dee7add..de3db57381c9 100644 --- a/examples/pytorch/ogb/ogbn-arxiv/gcn.py +++ b/examples/pytorch/ogb/ogbn-arxiv/gcn.py @@ -136,7 +136,6 @@ def run( mode="min", factor=0.5, patience=100, - verbose=True, min_lr=1e-3, ) diff --git a/examples/pytorch/ogb/ogbn-products/gat/gat.py b/examples/pytorch/ogb/ogbn-products/gat/gat.py index c3585f6b5519..826e370745df 100755 --- a/examples/pytorch/ogb/ogbn-products/gat/gat.py +++ b/examples/pytorch/ogb/ogbn-products/gat/gat.py @@ -302,7 +302,6 @@ def run( mode="max", factor=0.7, patience=20, - verbose=True, min_lr=1e-4, ) diff --git a/examples/pytorch/ogb/ogbn-products/mlp/mlp.py b/examples/pytorch/ogb/ogbn-products/mlp/mlp.py index 4c1fa8228ded..56e9d52b3e38 100755 --- a/examples/pytorch/ogb/ogbn-products/mlp/mlp.py +++ b/examples/pytorch/ogb/ogbn-products/mlp/mlp.py @@ -215,7 +215,6 @@ def run( mode="max", factor=0.7, patience=20, - verbose=True, min_lr=1e-4, ) diff --git a/examples/pytorch/ogb/ogbn-proteins/gat.py b/examples/pytorch/ogb/ogbn-proteins/gat.py index 6860461611e0..e3f8ab08e257 100755 --- a/examples/pytorch/ogb/ogbn-proteins/gat.py +++ b/examples/pytorch/ogb/ogbn-proteins/gat.py @@ -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