EvaluationWindows.cut#
- EvaluationWindows.cut(values, dtype)[source]#
Cut a date-first array into one padded window per period.
- Parameters:
- values
np.ndarray Array with
dateas its first axis, shape(n_dates, *rest).- dtype
str NumPy dtype of the output.
- values
- Returns:
np.ndarrayShape
(n_periods, max_window, *rest). Positions beyond a window’s own length are zero; they exist only so windows of different lengths stack, and no evaluated date reaches them, since the filters involved look backwards.