MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / __call__

Method __call__

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

Source from the content-addressed store, hash-verified

64 """Hour of day encoded as value between [-0.5, 0.5]"""
65
66 def __call__(self, index: pd.DatetimeIndex) -> np.ndarray:
67 return index.dayofweek / 6.0 - 0.5
68
69
70class DayOfMonth(TimeFeature):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected