EvaluationWindows.time_index#
- EvaluationWindows.time_index(dtype)[source]#
Build the positions along the fitted axis that each window covers.
HSGP-based latent variables such as
media_temporal_latent_multiplierevaluate their basis functions at these positions, so a window has to say where on the axis it sits rather than counting from zero.- Parameters:
- dtype
str NumPy dtype for the output.
- dtype
- Returns:
np.ndarrayShape
(n_periods, max_window). Indices may run pastn_dateswhere a short window is padded out.