Skip to content

Causality discovery

PdmContext.utils.causal_discovery_functions

calculate_with_pc

calculate_with_pc(names, data, timestamps)

Peter-Clark (PC) algorithm for causal discovery from gcastle package.

Parameters:

names: The names of the different time series in data.

data: Multivariate (2D) array containing different time series, each column represent a time series of Context CD part.

Requires the gcastle package (pip install PdmContext[pc]).

PdmContext.utils.MovingPC.MovingPC

MovingPC()

Deprecated: experimental and not stable, will be removed in a future version. Use calculate_with_pc, optionally with ContextGenerator(..., causality_every=k).