资源简介
2011年图灵奖获得者朱迪亚.珀尔DoWhy实现,实现者Shyamalschandra,实现语言Python。
代码片段和文件信息
import numpy as np
import pandas as pd
import logging
import dowhy
from dowhy.do_why import CausalModel
import dowhy.datasets
def regression(model identified_estimand):
causal_estimate_reg = model.estimate_effect(identified_estimand
method_name=“backdoor.linear_regression“
test_significance=True)
print(causal_estimate_reg)
print(“Causal Estimate is “ + str(causal_estimate_reg.value))
def stratification(model identified_estimand):
causal_estimate_strat = model.estimate_effect(identified_estimand
method_name=“backdoor.propensity_score_stratification“)
print(causal_estimate_strat)
print(“Causal Estimate is “ + str(causal_estimate_strat.value))
def matching(model identified_estimand):
causal_estimate_match = model.estimate_effect(identified_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-11-12 22:59 causal-inference-dowhy-master\
目录 0 2018-11-12 22:59 causal-inference-dowhy-master\.ipynb_checkpoints\
文件 79071 2018-11-12 22:59 causal-inference-dowhy-master\.ipynb_checkpoints\do_why_estimation_methods-checkpoint.ipynb
文件 112533 2018-11-12 22:59 causal-inference-dowhy-master\.ipynb_checkpoints\loading-graphs-checkpoint.ipynb
文件 465 2018-11-12 22:59 causal-inference-dowhy-master\README.md
文件 43101 2018-11-12 22:59 causal-inference-dowhy-master\causal_model.png
文件 123140 2018-11-12 22:59 causal-inference-dowhy-master\do_why_confounder_example.ipynb
文件 79071 2018-11-12 22:59 causal-inference-dowhy-master\do_why_estimation_methods.ipynb
目录 0 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\
文件 0 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__init__.py
目录 0 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\
文件 138 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\__init__.cpython-36.pyc
文件 142 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\__init__.cpython-37.pyc
文件 5177 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\causal_estimator.cpython-36.pyc
文件 5181 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\causal_estimator.cpython-37.pyc
文件 6341 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\causal_graph.cpython-36.pyc
文件 6347 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\causal_graph.cpython-37.pyc
文件 4561 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\causal_identifier.cpython-36.pyc
文件 4573 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\causal_identifier.cpython-37.pyc
文件 1215 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\causal_refuter.cpython-36.pyc
文件 1219 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\causal_refuter.cpython-37.pyc
文件 4167 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\datasets.cpython-36.pyc
文件 4171 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\datasets.cpython-37.pyc
文件 5697 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\do_why.cpython-36.pyc
文件 5711 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\do_why.cpython-37.pyc
文件 1930 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\__pycache__\plotter.cpython-36.pyc
文件 5498 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\causal_estimator.py
目录 0 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\causal_estimators\
文件 866 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\causal_estimators\__init__.py
目录 0 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\causal_estimators\__pycache__\
文件 852 2018-11-12 22:59 causal-inference-dowhy-master\dowhy\causal_estimators\__pycache__\__init__.cpython-36.pyc
............此处省略58个文件信息
- 上一篇:笨方法学python第二版
- 下一篇:Python棋盘放米OJ题和答案
评论
共有 条评论