CausalNex
SkillDev tools"Use CausalNex to learn causal structures, fit Bayesian networks,
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the CausalNex skill
What this skill tells your AI
The instructions your AI receives, as published by vectorspacelab/arex-skill in skills/repositories/repo-skills/causalnex/SKILL.md and read by ahel’s review.
Use this skill when the task names CausalNex, NOTEARS, DYNOTEARS, BayesianNetwork, InferenceEngine, Discretiser, DAGClassifier, DAGRegressor, BayesianNetworkClassifier, causal DAG learning, or Bayesian-network workflows from this package.
Route by task
- Structure learning from tabular or time-series data ->
sub-skills/structure-learning/SKILL.md - Bayesian-network fitting, inference, metrics, plots, and latent-variable EM ->
sub-skills/bayesian-networks/SKILL.md - Discretizing continuous features, including tree-based or MDLP splits ->
sub-skills/discretization/SKILL.md - Synthetic DAG/data generation, dynamic transforms, and categorical mapping ->
sub-skills/synthetic-data/SKILL.md - Contrib-area or contribution-layout questions ->
references/contribution-mirror.md
Fast start
- Install the package with
pip install causalnex. - If you need the optional discretizer extras, install
pip install "causalnex[all]"orpip install mdlp-discretization~=0.3.3. - Run
scripts/check_install.pyto confirm the core imports and optional backend availability. - Read
references/installation.mdfor supported Python and dependency notes. - Read
references/api-reference.mdwhen you need verified public constructors, signatures, and return-shape notes. - Read
references/workflows.mdfor the shortest path into each workflow. - Read
references/contribution-mirror.mdonly when the user asks aboutcausalnex.contribor contribution layout. - Read
references/troubleshooting.mdwhen imports, optional dependencies, or data-shape checks fail. - Read
references/repo-provenance.mdwhen you need to compare this skill with the current source revision.
Shared scripts
scripts/check_install.pyverifies the public package imports,torchavailability, and the optional MDLP dependency.scripts/smoke_structure_learning.pyexercisesfrom_pandas,from_numpy,from_pandas_dynamic,DAGClassifier, andDAGRegressoron tiny inputs.scripts/smoke_bayesian_network.pyfits a tiny Bayesian network, queries marginals, evaluates metrics, and optionally exercises latent-variable EM.scripts/smoke_discretizer.pyexercises the fixed, uniform, quantile, outlier, percentiles, tree, and MDLP discretizers.scripts/smoke_synthetic_data.pyexercises the DAG/data generators, dynamic transforms, and categorical mapping helpers.
References
references/installation.mdreferences/api-reference.mdreferences/workflows.mdreferences/contribution-mirror.mdreferences/troubleshooting.mdreferences/repo-provenance.mdreferences/repo-routing-metadata.json
Avoid
- Do not assume CUDA is required;
use_gpu=Truefalls back to CPU when CUDA is unavailable. - Do not assume
mdlp-discretizationis installed unless you asked for the optional discretizer path. - Do not rely on the original repository checkout; this skill should stand on its bundled references and scripts.
Signals
- GitHub stars
- 266
- Forks
- 21
- Last commit
- Sep 2026
ahel review
K1binfo
installs-packagesK6low
bundled executables the agent is told to runK1binfo
installs-packages (in references/installation.md)K1binfo
installs-packages (in references/troubleshooting.md)
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Catalog kind
- skill
- Gateway key
causalnex- Source
- github.com/vectorspacelab/arex-skill