计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
causalml【效率与协作】Use CausalML for causal inference, uplift modeling, matching, validation, interpretation, and treatment optimization workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when the task names CausalML or needs Python operating guidance for causal effect estimation, uplift modeling, propensity/matching, causal trees, optional neural causal models, validation metrics, sensitivity analysis, feature selection, or treatment decision optimization.
For normal package use, install the package and only the optional extras needed by the requested workflow:
pip install causalml
pip install "causalml[tf]" # TensorFlow DragonNet only when needed
pip install "causalml[torch]" # Torch/Pyro CEVAE only when needed
pip install "causalml[jax]" # JAX DragonNet/CEVAE only when needed
When working from a source checkout, use the equivalent editable install such as pip install -e . or pip install -e ".[tf,torch,jax]" from that checkout.
After installation, run the bundled diagnostic from this skill tree if import status is uncertain:
python scripts/check_env.py
python scripts/check_env.py --backend tf --backend jax
python scripts/check_env.py --backend all --json
The diagnostic checks core imports and only checks optional backends that are explicitly requested.
| Task | Open |
|---|---|
| Synthetic data, feature matrix preparation, propensity scores, matching, balance tables, CSV matching | sub-skills/data-preparation/ |
| S/T/X/R/DR meta-learners, TMLE, IV/DRIV, estimator API contracts, Polars/DataFrame support, persistence | sub-skills/causal-estimation/ |
| Causal trees, causal forests, uplift trees, uplift forests, tree plots, tree save/load, compiled tree import issues | sub-skills/tree-models/ |
| TensorFlow DragonNet, Torch/Pyro CEVAE, JAX DragonNet, JAX CEVAE, deep-backend setup and smoke checks | sub-skills/deep-models/ |
| AUUC/Qini/RATE/validation metrics, sensitivity analysis, feature selection, SHAP/importances, policy/value optimization, PNS bounds | sub-skills/analysis-and-decision/ |
Start at the most specific sub-skill. Return here only when routing across workflows or diagnosing cross-cutting install/import failures.
fit(X=X, treatment=treatment, y=y, ...). Positional argument order is migration-sensitive in current CausalML.control_name explicit whenever treatment labels are strings or multi-arm.(0, 1); clip extreme scores before X/R/DR/TMLE, validation, and matching workflows when appropriate.t_groups or _classes) rather than guessing column order.causalml.inference.nn; current neural models route through causalml.inference.tf, causalml.inference.torch, or causalml.inference.jax.