Minute of hour encoded as value between [-0.5, 0.5]
| 33 | |
| 34 | |
| 35 | class MinuteOfHour(TimeFeature): |
| 36 | """Minute of hour encoded as value between [-0.5, 0.5]""" |
| 37 | |
| 38 | def __call__(self, index: pd.DatetimeIndex) -> np.ndarray: |
| 39 | return index.minute / 59.0 - 0.5 |
| 40 | |
| 41 | |
| 42 | class HourOfDay(TimeFeature): |
nothing calls this directly
no outgoing calls
no test coverage detected