API reference

andrey.data.ContextSeries#

class andrey.data.ContextSeries(datasets, time_contexts, space_contexts, links, context_links, hidden_links)[source]#

Datasets of system variables and observed contexts, with the model’s links.

datasets holds one (n_steps, n_columns) array per dataset: the system variables, then the observed time contexts, then the observed space contexts, whose positions are time_contexts and space_contexts. links holds the (cause, effect, lag) links between system variables, a variable’s link to its own past included. context_links holds the (context, lag, variable) links from the observed contexts, by column position, and hidden_links the (lag, variable) links from the contexts the datasets leave out.