Skip to content

Commit 4a12733

Browse files
committed
FIXED : np.Inf -> np.inf for np>=2.0.0
1 parent 2236c19 commit 4a12733

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tutorial/TimesNet_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@
712712
" self.counter = 0 # now how many times loss not on decrease\n",
713713
" self.best_score = None\n",
714714
" self.early_stop = False\n",
715-
" self.val_loss_min = np.Inf\n",
715+
" self.val_loss_min = np.inf\n",
716716
" self.delta = delta\n",
717717
"\n",
718718
" def __call__(self, val_loss, model, path):\n",

utils/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, patience=7, verbose=False, delta=0):
3636
self.counter = 0
3737
self.best_score = None
3838
self.early_stop = False
39-
self.val_loss_min = np.Inf
39+
self.val_loss_min = np.inf
4040
self.delta = delta
4141

4242
def __call__(self, val_loss, model, path):

0 commit comments

Comments
 (0)