因果归因
原能力
按因果方法及其前提评估结果原因,不把相关或盈利直接视为因果证明。(合同附件 R7 19.5)
首选项目
DoWhy(MIT)。 DoWhy
匹配范围
因果识别、估计、Refuter 组件做已定义因果对照。
源码
DoWhy · def estimate_effect(
dowhy/causal_model.py · 271–284 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def estimate_effect(
self,
identified_estimand,
method_name=None,
control_value=0,
treatment_value=1,
test_significance=None,
evaluate_effect_strength=False,
confidence_intervals=False,
target_units="ate",
effect_modifiers=None,
fit_estimator=True,
method_params=None,
num_quantiles_to_discretize_cont_cols=None,
DoWhy · def refute_estimate(
dowhy/causal_model.py · 474–487 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def refute_estimate(self, estimand, estimate, method_name=None, show_progress_bar=False, **kwargs):
"""Refute an estimated causal effect.
method_name must be specified. Examples of refutation methods include:
* Adding a randomly-generated confounder: "random_common_cause"
* Adding a confounder that is associated with both treatment and outcome: "add_unobserved_common_cause"
* Replacing the treatment with a placebo (random) variable): "placebo_treatment_refuter"
* Removing a random subset of the data: "data_subset_refuter"
* Bootstrap the data: "bootstrap_refuter"
* Replace outcome with a dummy (random) variable: "dummy_outcome_refuter"
For available refuters, see modules under dowhy.causal_refuters.
:param estimand: target estimand, an instance of the IdentifiedEstimand class
(typically the output of identify_effect)
实现与验收要点
策略选择偏差、行动支持、删失与无可辨识假设的拒判。