causalbase#
Source | Issues | Changelog | Citing
causalbase learns the structure of Bayesian networks from data. It has seven estimators, all following scikit-learn’s conventions:
Estimator |
Data |
Returns |
|---|---|---|
Discrete (BDeu, BIC) or continuous (Gaussian BIC, BGe) |
The equivalence class, by greedy equivalence search |
|
The same |
The equivalence class, by a search that also deletes and reverses edges |
|
The same |
A DAG, by iterated local search over variable orders |
|
The same |
A DAG, by FLOP’s search over orders |
|
The same |
A DAG, by hill climbing or tabu search |
|
The same |
The DAG of highest score, or the best one under a parent limit |
|
Continuous, linear with non-Gaussian noise |
A causal order and its coefficients, from higher-order cumulants |
from causalbase import GES
from causalbase.datasets import load_alarm
model = GES().fit(load_alarm().data)
model.adjacency_
Learning across sites that cannot share their data is the job of fedcausal, which is built on causalbase.
Installation and a first structure, measured against the true network.
What each search does and what its options change.
Parameters, attributes and methods of every class and function.
Scripts that run on the bundled networks.