Browse Source

Update timefeatures.py

main
BBing 2 years ago
parent
commit
3e6d0a563b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/timefeatures.py

+ 1
- 1
utils/timefeatures.py View File

@@ -25,7 +25,7 @@ class SecondOfMinute(TimeFeature):

class MinuteOfHour(TimeFeature):
"""Minute of hour 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.minute / 59.0 - 0.5

class HourOfDay(TimeFeature):


Loading…
Cancel
Save