updated requirements file
This commit is contained in:
Родитель
0cf2ce0dfd
Коммит
9860e4e178
|
@ -92,12 +92,12 @@
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"image/png": "iVBORw0KGgoAAAANSUhEUgAAALMAAAAPBAMAAABdMuPOAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAVO8Qq4lmdpnN3TJEuyJIWJmAAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAC00lEQVQ4EbWUwUtUURTGf+ObccZRx0dFmxZaugjSemVRuchJMIQWvYWmIeIQWbTJIQpd5SBWBlouJIJaGBjUJt0I0WaGWrVSqkUQogRFKxE1aSqazr3nKfoHdGE+Ps75zo/73r3zYGNF+jqhvWcap68jx+uWtjbfivRfwYnRzyYozi6bCXz7zWlx0km0dbmKgNKM1ELVNuI84R4lrvOSGJymt1AoJK1IdxInSXfOOh2wGdjhwclcbEw73wmtKwLiSTjauioNKM8wz0W4wG6Jcx/CKhCtIeZRVGWdDtiM03xO0J8on9POgMsvRcD1pDCLFT27KP4jVHpd0IAPnSrwbZyiCcJ/rdMBm4FejzIpy5IMb3LkFUHialKKAfq9CazBrDv7gfPiy9Ib4o9Tskr4N4jTgSAj6PIqKQUd80IsgkhJUooBOj/Tn3N+CjodLvS4Ui+Xn5XiRQMkvoo6MxBkBF3xuH1EIJpp8BXBtS1oJ5/iaeIHZNN05z1BmZ1bOY5Fz/qos3vRjKAbHxJ3g87X554inPRWdAEGT8mus35oZKoWnGUhW/EVPSlPbZ1Ba8a868ZlYtVBh2htwiIibEHL2dL71r6QS0RXPKJjgjYSmrbAWGbDGbRmDLpiguI/QQb21VvEnm3oF4JOyRlUunLPsy7xOUEbOYZF9286g9aMQcfHKF7XzBIsuAax09+GbhJ0bl6kfllOKUVFUtBGdg0Pr9wllGFJnTl386IkY9DhKtm1dgqeoA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ZfxC5ZmBc/xVwnliKyw4Xs03qxwvtS5JgD4vonuFzif8Wzfd8GU5Mfa9pwPuUkrbDRSR7CM8ekP/tenuG5xRoxwndt4urURnG9M648jhIFDumxFlVFdroX8SE6hS0iy5d5Wp7EN/Wv+jmY23t30qu4gq4LP3o5cULxak+ES0+meNfh+eLHHiyMNapIrKuEuchv098y0REXC6uXhFVsqxCd5PYHBcxmZOjiOyMaU0FPY/rhdPcLs6YxpJ820WR4IEB+b8nbpm8Rmzus/uAY3iDuIVypul7uneI/c+NYmO/VQS3pWIVuVakg1Voo38bdNGlq1yniKto54tU805R3FiEP+EzBf42/kV3H2tr/7ZyTcOE+v3BZInAU2ZWfDLsJ24XbBBpymZhxPkt560r345pVnzJcBp+JzbTO0Vq9zVxEXgY/ERGsFKkTFtEFXGTKMMvKeE/WqQyd6V5HhMR9npx13BWzVxt9S9iQn0Fsq0ug8g1F98Q9zV3Cb+pu4zd1L/o7mNd7N9GrhFGGGGEEUYYYYQRRvhf4t8TnXtmJUxOSAAAAABJRU5ErkJggg==\n",
|
||||||
"text/latex": [
|
"text/latex": [
|
||||||
"$$1.6087742418164304$$"
|
"$\\displaystyle 1.6279985748706296$"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"1.6087742418164304"
|
"1.6279985748706296"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 3,
|
"execution_count": 3,
|
||||||
|
@ -167,7 +167,7 @@
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"WARN: Do you want to continue by ignoring these unobserved confounders? [y/n] yes\n"
|
"WARN: Do you want to continue by ignoring these unobserved confounders? [y/n] y\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -206,7 +206,7 @@
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"WARN: Do you want to continue by ignoring these unobserved confounders? [y/n] yes\n"
|
"WARN: Do you want to continue by ignoring these unobserved confounders? [y/n] y\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -254,12 +254,12 @@
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAKkAAAAPBAMAAABtvvLvAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAD3RSTlMAVO8Qq4lmdpnN3TIiu0Sg0+p/AAAACXBIWXMAAA7EAAAOxAGVKw4bAAACzElEQVQ4Ea2TzUtUURjGfzNn7ozjjHo3gdDCL4gokrsQkjZeXIRE4ATeNCQagoogaIgig6DBMiZIE4SWaWBQUDSL3LQZEYKIFkMELUoc2gRttDRpzJrec84d6Q/owtw573me58d7Pi7Un+EzxfowlScdnHTBuToKB69MQe/kR3g5EAQZVViuG7WSmp8IAnqDo6Fsg0S6DCzpqqeERaPPayKbqAfcgTwxV/mcqnCxVqv5PTh/QqNW4jK3ofaw5FnZBOkZWjfU03CiXlzyueGyRVOeZSJZ1HSDR7SduxDjJnRao1UWwY+1E8tb2QQhbqnvoc2zRfq8z+cKVVYlgVNGzUXniG2TgVH2weCiMRrFEUexZRpnzcomuEPdgFXXUp2kLzTZgXfyR/Nvz8km14n90kWOWY/BojEaRSa/0FcmsW1lE6xT1U+h5iz1gqEeylBdGKtIZ5vHJECjXlOTHvE8XFSolIlKr7LZVpZgnZr+ASVLVTlNffXYU9UsD2WBtRmxsarNx/WoWbxm36ziZPXyk5uhLEEZ2X1NS6+ljCkcTK+JblWDcY/Wr98r4puXn1qTF3JFbMoqfTL1gV3f6nKiWyYs9Z8d2G2pdHpbcLESlwshl68hL97EtLwoyE+nQuWalJFzC7LtVpZgnYqcVp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J5noiTGP3OcMQZ98CnKDCdIiXBzib0DyszH0vAS6Dfkk5FEkZfoGKbJmIG3c+w1GQq7fv85CD6Me+ealBbkfKUP65geRQnd3hH828DCyA7Uh+XEpMB1pa3Ygt7a+/L6+XInUY41I0bwP2XTmIKfOa5g/vXD1fyGyA69UvmYkdvOQnbIG+KMAdrnqcYVPXFLFMkN8jpeN8Gd1fLRlvlHA08BPyCVTO+aPCAOU4VaoLgG+QIrOLuRYfxz5eNGEcqTw34Is8kNIgD5DfB+ekt/Xl+lI2tOqvvyN7Pr1yPdO0W/aArj6D3L5tgaJRbf6VYd8x1You1z12JDBfGL4xCVNLIsooogiiiiiiCKKyB//Auc9yvc9r63bAAAAAElFTkSuQmCC\n",
|
||||||
"text/latex": [
|
"text/latex": [
|
||||||
"$$1.014368272187973$$"
|
"$\\displaystyle 1.07933759656433$"
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"1.014368272187973"
|
"1.07933759656433"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 8,
|
"execution_count": 8,
|
||||||
|
@ -302,7 +302,7 @@
|
||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.5.2"
|
"version": "3.7.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
|
|
@ -81,18 +81,18 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
" Z0 Z1 X0 X1 X2 X3 X4 v \\\n",
|
" Z0 Z1 X0 X1 X2 X3 X4 v \\\n",
|
||||||
"0 0.0 0.695090 0.478725 -0.506298 1.505455 0.339212 -1.121508 0.0 \n",
|
"0 0.0 0.053555 -1.174258 -0.987573 0.395070 -0.160051 0.264335 0.0 \n",
|
||||||
"1 1.0 0.700183 -0.207978 -0.724206 1.250477 -0.792156 -2.116102 0.0 \n",
|
"1 0.0 0.832194 0.631449 0.642332 1.227220 -0.364481 1.425717 1.0 \n",
|
||||||
"2 0.0 0.699891 -1.253667 0.157712 1.538109 0.275229 -0.021714 1.0 \n",
|
"2 0.0 0.306234 -0.114428 0.201991 0.023685 0.953880 1.076977 1.0 \n",
|
||||||
"3 0.0 0.718300 0.159832 0.995588 0.937482 0.500641 -1.042888 1.0 \n",
|
"3 0.0 0.416143 0.427830 1.266550 0.755916 1.557608 0.444620 1.0 \n",
|
||||||
"4 0.0 0.999750 0.979642 2.097794 2.272172 -0.807033 -4.033553 1.0 \n",
|
"4 0.0 0.652794 0.192758 0.532143 -0.683274 -0.571159 0.977457 1.0 \n",
|
||||||
"\n",
|
"\n",
|
||||||
" y \n",
|
" y \n",
|
||||||
"0 3.680029 \n",
|
"0 -4.636023 \n",
|
||||||
"1 -7.532851 \n",
|
"1 23.078269 \n",
|
||||||
"2 11.826775 \n",
|
"2 18.155708 \n",
|
||||||
"3 14.981646 \n",
|
"3 23.380629 \n",
|
||||||
"4 11.146996 \n",
|
"4 12.891050 \n",
|
||||||
"digraph { v ->y; U[label=\"Unobserved Confounders\"]; U->v; U->y;X0-> v; X1-> v; X2-> v; X3-> v; X4-> v;X0-> y; X1-> y; X2-> y; X3-> y; X4-> y;Z0-> v; Z1-> v;}\n",
|
"digraph { v ->y; U[label=\"Unobserved Confounders\"]; U->v; U->y;X0-> v; X1-> v; X2-> v; X3-> v; X4-> v;X0-> y; X1-> y; X2-> y; X3-> y; X4-> y;Z0-> v; Z1-> v;}\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -231,7 +231,7 @@
|
||||||
"name": "stderr",
|
"name": "stderr",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"INFO:dowhy.causal_identifier:Common causes of treatment and outcome:['X3', 'X4', 'X2', 'Unobserved Confounders', 'X1', 'X0']\n",
|
"INFO:dowhy.causal_identifier:Common causes of treatment and outcome:['X4', 'X1', 'Unobserved Confounders', 'X0', 'X2', 'X3']\n",
|
||||||
"WARNING:dowhy.causal_identifier:There are unobserved common causes. Causal effect cannot be identified.\n"
|
"WARNING:dowhy.causal_identifier:There are unobserved common causes. Causal effect cannot be identified.\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -258,9 +258,9 @@
|
||||||
"Estimand name: backdoor\n",
|
"Estimand name: backdoor\n",
|
||||||
"Estimand expression:\n",
|
"Estimand expression:\n",
|
||||||
"d \n",
|
"d \n",
|
||||||
"──(Expectation(y|X3,X4,X2,X1,X0))\n",
|
"──(Expectation(y|X4,X1,X0,X2,X3))\n",
|
||||||
"dv \n",
|
"dv \n",
|
||||||
"Estimand assumption 1, Unconfoundedness: If U→v and U→y then P(y|v,X3,X4,X2,X1,X0,U) = P(y|v,X3,X4,X2,X1,X0)\n",
|
"Estimand assumption 1, Unconfoundedness: If U→v and U→y then P(y|v,X4,X1,X0,X2,X3,U) = P(y|v,X4,X1,X0,X2,X3)\n",
|
||||||
"### Estimand : 2\n",
|
"### Estimand : 2\n",
|
||||||
"Estimand name: iv\n",
|
"Estimand name: iv\n",
|
||||||
"Estimand expression:\n",
|
"Estimand expression:\n",
|
||||||
|
@ -292,7 +292,7 @@
|
||||||
"name": "stderr",
|
"name": "stderr",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"INFO:dowhy.causal_identifier:Common causes of treatment and outcome:['X3', 'X4', 'X2', 'Unobserved Confounders', 'X1', 'X0']\n",
|
"INFO:dowhy.causal_identifier:Common causes of treatment and outcome:['X4', 'X1', 'Unobserved Confounders', 'X0', 'X2', 'X3']\n",
|
||||||
"INFO:dowhy.causal_identifier:All common causes are observed. Causal effect can be identified.\n",
|
"INFO:dowhy.causal_identifier:All common causes are observed. Causal effect can be identified.\n",
|
||||||
"INFO:dowhy.causal_identifier:Instrumental variables for treatment and outcome:['Z1', 'Z0']\n"
|
"INFO:dowhy.causal_identifier:Instrumental variables for treatment and outcome:['Z1', 'Z0']\n"
|
||||||
]
|
]
|
||||||
|
@ -306,9 +306,9 @@
|
||||||
"Estimand name: backdoor\n",
|
"Estimand name: backdoor\n",
|
||||||
"Estimand expression:\n",
|
"Estimand expression:\n",
|
||||||
"d \n",
|
"d \n",
|
||||||
"──(Expectation(y|X3,X4,X2,X1,X0))\n",
|
"──(Expectation(y|X4,X1,X0,X2,X3))\n",
|
||||||
"dv \n",
|
"dv \n",
|
||||||
"Estimand assumption 1, Unconfoundedness: If U→v and U→y then P(y|v,X3,X4,X2,X1,X0,U) = P(y|v,X3,X4,X2,X1,X0)\n",
|
"Estimand assumption 1, Unconfoundedness: If U→v and U→y then P(y|v,X4,X1,X0,X2,X3,U) = P(y|v,X4,X1,X0,X2,X3)\n",
|
||||||
"### Estimand : 2\n",
|
"### Estimand : 2\n",
|
||||||
"Estimand name: iv\n",
|
"Estimand name: iv\n",
|
||||||
"Estimand expression:\n",
|
"Estimand expression:\n",
|
||||||
|
@ -341,7 +341,7 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"INFO:dowhy.causal_estimator:INFO: Using Linear Regression Estimator\n",
|
"INFO:dowhy.causal_estimator:INFO: Using Linear Regression Estimator\n",
|
||||||
"INFO:dowhy.causal_estimator:b: y~v+X3+X4+X2+X1+X0\n"
|
"INFO:dowhy.causal_estimator:b: y~v+X4+X1+X0+X2+X3\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -356,9 +356,9 @@
|
||||||
"Estimand name: backdoor\n",
|
"Estimand name: backdoor\n",
|
||||||
"Estimand expression:\n",
|
"Estimand expression:\n",
|
||||||
"d \n",
|
"d \n",
|
||||||
"──(Expectation(y|X3,X4,X2,X1,X0))\n",
|
"──(Expectation(y|X4,X1,X0,X2,X3))\n",
|
||||||
"dv \n",
|
"dv \n",
|
||||||
"Estimand assumption 1, Unconfoundedness: If U→v and U→y then P(y|v,X3,X4,X2,X1,X0,U) = P(y|v,X3,X4,X2,X1,X0)\n",
|
"Estimand assumption 1, Unconfoundedness: If U→v and U→y then P(y|v,X4,X1,X0,X2,X3,U) = P(y|v,X4,X1,X0,X2,X3)\n",
|
||||||
"### Estimand : 2\n",
|
"### Estimand : 2\n",
|
||||||
"Estimand name: iv\n",
|
"Estimand name: iv\n",
|
||||||
"Estimand expression:\n",
|
"Estimand expression:\n",
|
||||||
|
@ -367,11 +367,11 @@
|
||||||
"Estimand assumption 2, Exclusion: If we remove {Z1,Z0}→v, then ¬(Z1,Z0→y)\n",
|
"Estimand assumption 2, Exclusion: If we remove {Z1,Z0}→v, then ¬(Z1,Z0→y)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"## Realized estimand\n",
|
"## Realized estimand\n",
|
||||||
"b: y~v+X3+X4+X2+X1+X0\n",
|
"b: y~v+X4+X1+X0+X2+X3\n",
|
||||||
"## Estimate\n",
|
"## Estimate\n",
|
||||||
"Value: 10.000000000000412\n",
|
"Value: 9.9999999999994\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Causal Estimate is 10.000000000000412\n"
|
"Causal Estimate is 9.9999999999994\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -471,7 +471,7 @@
|
||||||
"name": "stderr",
|
"name": "stderr",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"INFO:dowhy.causal_identifier:Common causes of treatment and outcome:['X3', 'X4', 'X2', 'X1', 'U', 'X0']\n",
|
"INFO:dowhy.causal_identifier:Common causes of treatment and outcome:['U', 'X4', 'X1', 'X0', 'X2', 'X3']\n",
|
||||||
"WARNING:dowhy.causal_identifier:There are unobserved common causes. Causal effect cannot be identified.\n"
|
"WARNING:dowhy.causal_identifier:There are unobserved common causes. Causal effect cannot be identified.\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -503,7 +503,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 14,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
@ -511,16 +511,40 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"INFO:dowhy.causal_estimator:INFO: Using Propensity Score Matching Estimator\n",
|
"INFO:dowhy.causal_estimator:INFO: Using Propensity Score Matching Estimator\n",
|
||||||
"INFO:dowhy.causal_estimator:b: y~v+X3+X4+X2+X1+X0\n"
|
"INFO:dowhy.causal_estimator:b: y~v+X4+X1+X0+X2+X3\n"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"*** Causal Estimate ***\n",
|
||||||
|
"\n",
|
||||||
|
"## Target estimand\n",
|
||||||
|
"Estimand type: ate\n",
|
||||||
|
"### Estimand : 1\n",
|
||||||
|
"Estimand name: backdoor\n",
|
||||||
|
"Estimand expression:\n",
|
||||||
|
"d \n",
|
||||||
|
"──(Expectation(y|X4,X1,X0,X2,X3))\n",
|
||||||
|
"dv \n",
|
||||||
|
"Estimand assumption 1, Unconfoundedness: If U→v and U→y then P(y|v,X4,X1,X0,X2,X3,U) = P(y|v,X4,X1,X0,X2,X3)\n",
|
||||||
|
"### Estimand : 2\n",
|
||||||
|
"Estimand name: iv\n",
|
||||||
|
"No such variable found!\n",
|
||||||
|
"\n",
|
||||||
|
"## Realized estimand\n",
|
||||||
|
"b: y~v+X4+X1+X0+X2+X3\n",
|
||||||
|
"## Estimate\n",
|
||||||
|
"Value: 12.4138990048773\n",
|
||||||
|
"\n",
|
||||||
|
"Causal Estimate is 12.4138990048773\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"estimate = model.estimate_effect(identified_estimand,\n",
|
"estimate = model.estimate_effect(identified_estimand,\n",
|
||||||
" method_name=\"backdoor.propensity_score_matching\", \n",
|
" method_name=\"backdoor.propensity_score_matching\") \n",
|
||||||
" test_significance=True,\n",
|
|
||||||
" method_params={'num_simulations':100}\n",
|
|
||||||
" ) \n",
|
|
||||||
"print(estimate)\n",
|
"print(estimate)\n",
|
||||||
"print(\"Causal Estimate is \" + str(estimate.value))"
|
"print(\"Causal Estimate is \" + str(estimate.value))"
|
||||||
]
|
]
|
||||||
|
@ -551,7 +575,7 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"INFO:dowhy.causal_estimator:INFO: Using Propensity Score Matching Estimator\n",
|
"INFO:dowhy.causal_estimator:INFO: Using Propensity Score Matching Estimator\n",
|
||||||
"INFO:dowhy.causal_estimator:b: y~v+X3+X4+X2+X1+X0+w_random\n"
|
"INFO:dowhy.causal_estimator:b: y~v+X4+X1+X0+X2+X3+w_random\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -559,8 +583,8 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"Refute: Add a Random Common Cause\n",
|
"Refute: Add a Random Common Cause\n",
|
||||||
"Estimated effect:(10.908522924630901,)\n",
|
"Estimated effect:(12.4138990048773,)\n",
|
||||||
"New effect:(11.054066132710718,)\n",
|
"New effect:(12.427568331323032,)\n",
|
||||||
"\n"
|
"\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -587,7 +611,7 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"INFO:dowhy.causal_estimator:INFO: Using Propensity Score Matching Estimator\n",
|
"INFO:dowhy.causal_estimator:INFO: Using Propensity Score Matching Estimator\n",
|
||||||
"INFO:dowhy.causal_estimator:b: y~placebo+X3+X4+X2+X1+X0\n"
|
"INFO:dowhy.causal_estimator:b: y~placebo+X4+X1+X0+X2+X3\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -595,8 +619,8 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"Refute: Use a Placebo Treatment\n",
|
"Refute: Use a Placebo Treatment\n",
|
||||||
"Estimated effect:(10.908522924630901,)\n",
|
"Estimated effect:(12.4138990048773,)\n",
|
||||||
"New effect:(-0.0869775211863151,)\n",
|
"New effect:(-0.025198898772462442,)\n",
|
||||||
"\n"
|
"\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -624,7 +648,7 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"INFO:dowhy.causal_estimator:INFO: Using Propensity Score Matching Estimator\n",
|
"INFO:dowhy.causal_estimator:INFO: Using Propensity Score Matching Estimator\n",
|
||||||
"INFO:dowhy.causal_estimator:b: y~v+X3+X4+X2+X1+X0\n"
|
"INFO:dowhy.causal_estimator:b: y~v+X4+X1+X0+X2+X3\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -632,8 +656,8 @@
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"Refute: Use a subset of data\n",
|
"Refute: Use a subset of data\n",
|
||||||
"Estimated effect:(10.908522924630901,)\n",
|
"Estimated effect:(12.4138990048773,)\n",
|
||||||
"New effect:(10.94176751611995,)\n",
|
"New effect:(12.379545785678552,)\n",
|
||||||
"\n"
|
"\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
numpy
|
numpy>=1.15
|
||||||
scipy
|
scipy
|
||||||
pandas
|
pandas
|
||||||
networkx
|
networkx>=2.0
|
||||||
matplotlib
|
matplotlib>=3.1
|
||||||
sympy
|
sympy>=1.4
|
||||||
scikit-learn
|
scikit-learn
|
||||||
pydot
|
pydot>=1.4
|
||||||
|
|
Загрузка…
Ссылка в новой задаче