Esc
Ask AIAnswers may be inaccurate; check the linked pages.Esc
Ask anything about these docs, like how to get started or what a function does.

variates_and_num_targets_for_predict

lagllama_channel_fanout.variates_and_num_targets_for_predict

Return the 2D variate matrix (time, channels) and the number of target columns.

Target columns are the leading num_targets columns; any trailing columns come from x_context and are not returned in the final forecast stack.

Parameter Type Default Description
y_context np.ndarray - -
x_context Optional[np.ndarray] - -

Returns: tuple[np.ndarray, int] (The 2D variate matrix (time, channels) and the number of target columns.) Raises: ValueError (If y_context or x_context dimensions are incorrect, or if their time steps do not match.)