技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
causalnex【数据与研究】Use CausalNex to learn causal structures, fit Bayesian networks, discretize features, generate synthetic graph data, and run inference, evaluation, and latent-variable workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
sub-skills/structure-learning/SKILL.mdsub-skills/bayesian-networks/SKILL.mdsub-skills/discretization/SKILL.mdsub-skills/synthetic-data/SKILL.mdreferences/contribution-mirror.mdpip install causalnex.pip install "causalnex[all]" or pip install mdlp-discretization~=0.3.3.scripts/check_install.py to confirm the core imports and optional backend availability.references/installation.md for supported Python and dependency notes.references/api-reference.md when you need verified public constructors, signatures, and return-shape notes.references/workflows.md for the shortest path into each workflow.references/contribution-mirror.md only when the user asks about causalnex.contrib or contribution layout.references/troubleshooting.md when imports, optional dependencies, or data-shape checks fail.references/repo-provenance.md when you need to compare this skill with the current source revision.scripts/check_install.py verifies the public package imports, torch availability, and the optional MDLP dependency.scripts/smoke_structure_learning.py exercises from_pandas, from_numpy, from_pandas_dynamic, DAGClassifier, and DAGRegressor on tiny inputs.scripts/smoke_bayesian_network.py fits a tiny Bayesian network, queries marginals, evaluates metrics, and optionally exercises latent-variable EM.scripts/smoke_discretizer.py exercises the fixed, uniform, quantile, outlier, percentiles, tree, and MDLP discretizers.scripts/smoke_synthetic_data.py exercises the DAG/data generators, dynamic transforms, and categorical mapping helpers.references/installation.mdreferences/api-reference.mdreferences/workflows.mdreferences/contribution-mirror.mdreferences/troubleshooting.mdreferences/repo-provenance.mdreferences/repo-routing-metadata.jsonuse_gpu=True falls back to CPU when CUDA is unavailable.mdlp-discretization is installed unless you asked for the optional discretizer path.