Uncomment notebook examples for coverage
Signed-off-by: Andres Morales <andresmor@microsoft.com>
This commit is contained in:
Родитель
10bd4ec084
Коммит
dcb4d54fd8
|
@ -165,18 +165,18 @@
|
|||
"identified_estimand = identify_effect(graph, treatment_name, outcome_name)\n",
|
||||
"\n",
|
||||
"# auto_identify_effect example with extra parameters:\n",
|
||||
"# identified_estimand_auto = identify_effect_auto(\n",
|
||||
"# graph,\n",
|
||||
"# treatment_name,\n",
|
||||
"# outcome_name,\n",
|
||||
"# estimand_type=EstimandType.NONPARAMETRIC_ATE,\n",
|
||||
"# backdoor_adjustment=BackdoorAdjustment.BACKDOOR_EFFICIENT,\n",
|
||||
"# )\n",
|
||||
"identified_estimand_auto = identify_effect_auto(\n",
|
||||
" graph,\n",
|
||||
" treatment_name,\n",
|
||||
" outcome_name,\n",
|
||||
" estimand_type=EstimandType.NONPARAMETRIC_ATE,\n",
|
||||
" backdoor_adjustment=BackdoorAdjustment.BACKDOOR_EFFICIENT,\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"# # id_identify_effect example:\n",
|
||||
"# identified_estimand_id = identify_effect_id(\n",
|
||||
"# graph, treatment_name, outcome_name\n",
|
||||
"# ) # Note that the return type for id_identify_effect is IDExpression and not IdentifiedEstimand\n",
|
||||
"# id_identify_effect example:\n",
|
||||
"identified_estimand_id = identify_effect_id(\n",
|
||||
" graph, treatment_name, outcome_name\n",
|
||||
") # Note that the return type for id_identify_effect is IDExpression and not IdentifiedEstimand\n",
|
||||
"\n",
|
||||
"print(identified_estimand)"
|
||||
]
|
||||
|
@ -252,11 +252,11 @@
|
|||
"# Or you can execute refute methods directly\n",
|
||||
"# You can change the refute_bootstrap - refute_data_subset for any of the other refuters and add the missing parameters\n",
|
||||
"\n",
|
||||
"# bootstrap_refutation = refute_bootstrap(data[\"df\"], identified_estimand, estimate)\n",
|
||||
"# print(bootstrap_refutation)\n",
|
||||
"bootstrap_refutation = refute_bootstrap(data[\"df\"], identified_estimand, estimate)\n",
|
||||
"print(bootstrap_refutation)\n",
|
||||
"\n",
|
||||
"# data_subset_refutation = refute_data_subset(data[\"df\"], identified_estimand, estimate)\n",
|
||||
"# print(data_subset_refutation)"
|
||||
"data_subset_refutation = refute_data_subset(data[\"df\"], identified_estimand, estimate)\n",
|
||||
"print(data_subset_refutation)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче