API Reference
Import causalcompass as:
import causalcompass
CausalCompass provides data generation functions for both VAR (linear) and Lorenz-96 (nonlinear) models across multiple assumption-violation scenarios.
All data generation functions are located under causalcompass.datasets.
All algorithms are located under causalcompass.algorithms.
Data Generation
Generate time series data from a Vector Autoregressive (VAR) model. |
|
Generate time series data from the Lorenz-96 dynamical system. |
|
Generate VAR data with measurement error proportional to data variance. |
|
|
Generate Lorenz-96 data with measurement error. |
Generate VAR data where a proportion of variables are discretized. |
|
Generate Lorenz-96 data where a proportion of variables are discretized. |
|
Generate VAR data with z-score or min-max normalization applied. |
|
Generate Lorenz-96 data with normalization applied. |
|
Generate VAR data with cross-lag hidden confounders that introduce spurious correlations. |
|
Generate Lorenz-96 data with hidden confounders. |
|
Generate VAR data with missing values and interpolation. |
|
Generate Lorenz-96 data with missing values and interpolation. |
|
Generate VAR data with additive trend and seasonal components. |
|
Generate Lorenz-96 data with additive trend and seasonal components. |
|
Generate VAR data with time-varying noise variance (driven by Gaussian Process). |
|
|
Generate VAR data with both time-varying coefficients and time-varying noise. |
Generate Lorenz-96 data with time-varying noise variance. |
Algorithms
Granger causality-based causal discovery method that fits a Vector Autoregressive model and infers causal relationships from the estimated coefficient matrix. |
|
Granger causality-based causal discovery method that augments the VAR model with a Lasso penalty term. |
|
Noise-based causal discovery method that combines Vector Autoregressive model with Linear Non-Gaussian Acyclic Model (LiNGAM) for time series data. |
|
Constraint-based causal discovery method that combines the PC algorithm with Momentary Conditional Independence tests for time series data. |
|
Score-based causal discovery method that extends the NOTEARS framework to dynamic (time series) settings using continuous optimization with acyclicity constraints. |
|
NTS-NOTEARS is a score-based nonlinear extension of DYNOTEARS. |
|
Topology-based causal discovery method that leverages Takens’ state-space reconstruction theory to infer causality. |
|
Deep learning-based causal discovery method that uses component-wise MLPs to model nonlinear Granger causality. |
|
Deep learning-based causal discovery method that uses component-wise LSTMs to model nonlinear Granger causality. |
|
CUTS is a deep learning-based causal discovery method tailored for irregular time series data. |
|
CUTS+ extends the original CUTS framework. |