(self, index: pd.DatetimeIndex)
| 42 | """Hour of day encoded as value between [-0.5, 0.5]""" |
| 43 | |
| 44 | def __call__(self, index: pd.DatetimeIndex) -> np.ndarray: |
| 45 | return index.dayofweek / 6.0 - 0.5 |
| 46 | |
| 47 | |
| 48 | class DayOfMonth(TimeFeature): |
nothing calls this directly
no outgoing calls
no test coverage detected