跳到正文
cccskills
免费在 GitHub 公开

causalml

Use CausalML for causal inference, uplift modeling, matching, validation, interpretation, and treatment optimization workflows.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(29)

  • SKILL.md4.0 KB
  • references/repo-provenance.md5.7 KB
  • references/repo-routing-metadata.json420 B
  • references/troubleshooting.md5.2 KB
  • scripts/check_env.py4.6 KB
  • sub-skills/analysis-and-decision/references/metrics-and-validation.md8.4 KB
  • sub-skills/analysis-and-decision/references/optimization.md8.3 KB
  • sub-skills/analysis-and-decision/references/sensitivity-and-selection.md9.1 KB
  • sub-skills/analysis-and-decision/references/troubleshooting.md8.8 KB
  • sub-skills/analysis-and-decision/SKILL.md3.3 KB
  • sub-skills/causal-estimation/references/api-contracts.md7.9 KB
  • sub-skills/causal-estimation/references/iv-tmle-serialization.md6.3 KB
  • sub-skills/causal-estimation/references/meta-learners.md9.3 KB
  • sub-skills/causal-estimation/references/troubleshooting.md7.4 KB
  • sub-skills/causal-estimation/SKILL.md3.2 KB
  • sub-skills/data-preparation/references/data-contracts.md7.2 KB
  • sub-skills/data-preparation/references/troubleshooting.md6.2 KB
  • sub-skills/data-preparation/references/workflows.md12.7 KB
  • sub-skills/data-preparation/scripts/match_csv.py8.0 KB
  • sub-skills/data-preparation/SKILL.md3.6 KB
  • sub-skills/deep-models/references/backend-setup.md4.2 KB
  • sub-skills/deep-models/references/cevae.md5.4 KB
  • sub-skills/deep-models/references/dragonnet.md5.4 KB
  • sub-skills/deep-models/references/troubleshooting.md5.7 KB
  • sub-skills/deep-models/SKILL.md2.7 KB
  • sub-skills/tree-models/references/causal-trees.md2.9 KB
  • sub-skills/tree-models/references/troubleshooting.md2.3 KB
  • sub-skills/tree-models/references/uplift-trees.md3.8 KB
  • sub-skills/tree-models/SKILL.md1.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

causalml

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.

Install and environment check

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.

Route by workflow

TaskOpen
Synthetic data, feature matrix preparation, propensity scores, matching, balance tables, CSV matchingsub-skills/data-preparation/
S/T/X/R/DR meta-learners, TMLE, IV/DRIV, estimator API contracts, Polars/DataFrame support, persistencesub-skills/causal-estimation/
Causal trees, causal forests, uplift trees, uplift forests, tree plots, tree save/load, compiled tree import issuessub-skills/tree-models/
TensorFlow DragonNet, Torch/Pyro CEVAE, JAX DragonNet, JAX CEVAE, deep-backend setup and smoke checkssub-skills/deep-models/
AUUC/Qini/RATE/validation metrics, sensitivity analysis, feature selection, SHAP/importances, policy/value optimization, PNS boundssub-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.

Operating defaults

  1. Prefer keyword arguments for estimator calls: fit(X=X, treatment=treatment, y=y, ...). Positional argument order is migration-sensitive in current CausalML.
  2. Keep control_name explicit whenever treatment labels are strings or multi-arm.
  3. Treat propensity scores as probabilities strictly inside (0, 1); clip extreme scores before X/R/DR/TMLE, validation, and matching workflows when appropriate.
  4. For multi-treatment CATE arrays, use the learner's treatment-group metadata (t_groups or _classes) rather than guessing column order.
  5. For metrics and policy workflows, separate model prediction columns from feature columns. Many metrics treat every non-reserved column as a model score.
  6. Do not rely on old documentation references to causalml.inference.nn; current neural models route through causalml.inference.tf, causalml.inference.torch, or causalml.inference.jax.
  7. CPU execution is sufficient for small correctness and wiring checks. Do not claim GPU/accelerator behavior unless the selected backend stack has been installed and verified separately.

Cross-cutting references

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题