MCPcopy Create free account
hub / github.com/kwuking/TimeMixer / MinuteOfHour

Class MinuteOfHour

utils/timefeatures.py:35–39  ·  view source on GitHub ↗

Minute of hour encoded as value between [-0.5, 0.5]

Source from the content-addressed store, hash-verified

33
34
35class 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
42class HourOfDay(TimeFeature):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected