File tree 3 files changed +94
-87
lines changed
examples/variational_inference
3 files changed +94
-87
lines changed Original file line number Diff line number Diff line change 78
78
"source": [
79
79
"from warnings import filterwarnings\n",
80
80
"\n",
81
+ "import arviz as az\n",
81
82
"import matplotlib.pyplot as plt\n",
82
83
"import numpy as np\n",
83
84
"import pymc3 as pm\n",
787
788
}
788
789
],
789
790
"source": [
790
- "pm.traceplot (trace);"
791
+ "az.plot_trace (trace);"
791
792
]
792
793
},
793
794
{
861
862
"name": "python",
862
863
"nbconvert_exporter": "python",
863
864
"pygments_lexer": "ipython3",
864
- "version": "3.7.7 "
865
+ "version": "3.8.5 "
865
866
},
866
867
"latex_envs": {
867
868
"bibliofile": "biblio.bib",
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 25
25
"outputs": [],
26
26
"source": [
27
27
"%matplotlib inline\n",
28
+ "import arviz as az\n",
28
29
"import matplotlib.pyplot as plt\n",
29
30
"import numpy as np\n",
30
31
"import pymc3 as pm\n",
164
165
}
165
166
],
166
167
"source": [
167
- "pm.traceplot (trace);"
168
+ "az.plot_trace (trace);"
168
169
]
169
170
},
170
171
{
272
273
}
273
274
],
274
275
"source": [
275
- "pm .plot_posterior(mean_field.sample(1000), color=\"LightSeaGreen\");"
276
+ "az .plot_posterior(mean_field.sample(1000), color=\"LightSeaGreen\");"
276
277
]
277
278
},
278
279
{
1307
1308
}
1308
1309
],
1309
1310
"source": [
1310
- "pm .plot_posterior(trace_approx.sample(10000));"
1311
+ "az .plot_posterior(trace_approx.sample(10000));"
1311
1312
]
1312
1313
},
1313
1314
{
2108
2109
],
2109
2110
"metadata": {
2110
2111
"kernelspec": {
2111
- "display_name": "Python 3 ",
2112
+ "display_name": "Python (PyMC3 Dev) ",
2112
2113
"language": "python",
2113
- "name": "python3 "
2114
+ "name": "pymc3-dev "
2114
2115
},
2115
2116
"language_info": {
2116
2117
"codemirror_mode": {
2122
2123
"name": "python",
2123
2124
"nbconvert_exporter": "python",
2124
2125
"pygments_lexer": "ipython3",
2125
- "version": "3.7.7 "
2126
+ "version": "3.8.5 "
2126
2127
}
2127
2128
},
2128
2129
"nbformat": 4,
You can’t perform that action at this time.
0 commit comments