(self, index: pd.DatetimeIndex)
| 92 | """Week of year encoded as value between [-0.5, 0.5]""" |
| 93 | |
| 94 | def __call__(self, index: pd.DatetimeIndex) -> np.ndarray: |
| 95 | return (index.isocalendar().week - 1) / 52.0 - 0.5 |
| 96 | |
| 97 | |
| 98 | def time_features_from_frequency_str(freq_str: str) -> List[TimeFeature]: |
nothing calls this directly
no outgoing calls
no test coverage detected