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