Browse Source

Update timefeatures.py

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

+ 1
- 1
utils/timefeatures.py View File

@@ -20,7 +20,7 @@ class TimeFeature:

class SecondOfMinute(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.second / 59.0 - 0.5

class MinuteOfHour(TimeFeature):


Loading…
Cancel
Save