From 1f1b7b62fa1f03bb675f3910ef7cfad263575842 Mon Sep 17 00:00:00 2001 From: BBing <67486385@qq.com> Date: Wed, 4 Oct 2023 12:47:33 +0800 Subject: [PATCH] Update timefeatures.py --- utils/timefeatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/timefeatures.py b/utils/timefeatures.py index c102fde..0c17fca 100644 --- a/utils/timefeatures.py +++ b/utils/timefeatures.py @@ -50,7 +50,7 @@ class DayOfYear(TimeFeature): class MonthOfYear(TimeFeature): """Month of year encoded as value between [-0.5, 0.5]""" - def __call__(self, index: pd.DatetimeIndex) -> np.ndarray: + def __call__(self, index: pd.DatetimeIndex) -> mnp.ndarray: return (index.month - 1) / 11.0 - 0.5 class WeekOfYear(TimeFeature):