MCPcopy Create free account
hub / github.com/Anoise/WTFlib / __call__

Method __call__

LDPS_Graph/utils/timefeatures.py:44–45  ·  view source on GitHub ↗
(self, index: pd.DatetimeIndex)

Source from the content-addressed store, hash-verified

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
48class DayOfMonth(TimeFeature):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected