|
|
|
@@ -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): |
|
|
|
|