LCM-9.4M - Large Causal Models for time series
2 min readupdated
The LCM-9.4M model is designed for temporal causal discovery tasks. It is based on the Large Causal Models (LCM) architecture and contains 9.4 million parameters. The model outputs an adjacency matrix that describes the identified relationships between variables, taking time lags into account. This tool will be useful for researchers and data analysts working with dynamic systems and time series.
Key features
- Large Causal Models (LCM) architecture for temporal analysis
- 9.4 million parameters for efficient performance
- Support for up to 12 variables and a sequence length of up to 500
- Powered by the lcm-pytorch library
What you can do
- Apply it to analyze causal relationships in complex time series
- Investigate process dynamics with a lag of up to 3 steps
- Integrate the model into Python data processing pipelines
Example
An example of loading and using the model from the repository:
import torch
from lcm_pytorch.modules.lcm_module import LCMModule
from lcm_pytorch.utils.utils import lagged_batch_crosscorrelation
model = LCMModule.from_pretrained("nkougioulis/LCM-9.4M").eval()
# X: time series of shape (T, n_vars), padded to n_vars=12 & T=500
X = X.unsqueeze(0)
with torch.no_grad():
# pred: discovered lagged adjacency tensor of shape (1, 12, 12, 3)
pred = torch.sigmoid(model((X, lagged_batch_crosscorrelation(X, 3))))
Read more
DetailsParameters: 9,402,288
Maximum variables: 12
Maximum lag: 3
Maximum sequence length: 500
Based on research on temporal causal discovery










Comments