Skip to main content

parse_mv_contexts

Function parse_mv_contexts 

Source
pub fn parse_mv_contexts(val: Value) -> Result<Vec<Vec<Vec<f32>>>>
Expand description

Parse the context field of a forecast request into [batch][variate][time].

Accepted shapes:

  • [t0, t1, ...] → batch=1, n_var=1 (flat single series)
  • [[t0, t1, ...], ...] → batch=N, n_var=1 (batch of univariate)
  • [[[v0_t0, ...], [v1_t0, ...]], ...] → batch=N, n_var=M (batch of multivariate)