|
19 | 19 | "import pymc3 as pm\n", |
20 | 20 | "from data import load_finches_2012\n", |
21 | 21 | "from utils import despine_traceplot\n", |
| 22 | + "import arviz as az\n", |
22 | 23 | "\n", |
23 | 24 | "%load_ext autoreload\n", |
24 | 25 | "%autoreload 2\n", |
|
132 | 133 | "metadata": {}, |
133 | 134 | "outputs": [], |
134 | 135 | "source": [ |
135 | | - "traces = pm.traceplot(trace, varnames=['mean'])\n", |
| 136 | + "traces = az.plot_trace(trace, var_names=['mean'])\n", |
136 | 137 | "despine_traceplot(traces)" |
137 | 138 | ] |
138 | 139 | }, |
|
149 | 150 | "metadata": {}, |
150 | 151 | "outputs": [], |
151 | 152 | "source": [ |
152 | | - "ax1, ax2, ax3 = pm.plot_posterior(trace, varnames=['mean'])\n", |
| 153 | + "ax1, ax2, ax3 = az.plot_posterior(trace, var_names=['mean'])\n", |
153 | 154 | "ax1.set_title('fortis')\n", |
154 | 155 | "ax2.set_title('scandens')\n", |
155 | 156 | "ax3.set_title('unknown')" |
|
204 | 205 | "metadata": {}, |
205 | 206 | "outputs": [], |
206 | 207 | "source": [ |
207 | | - "traces = pm.traceplot(trace)\n", |
| 208 | + "traces = az.plot_trace(trace)\n", |
208 | 209 | "despine_traceplot(traces)" |
209 | 210 | ] |
210 | 211 | }, |
|
214 | 215 | "metadata": {}, |
215 | 216 | "outputs": [], |
216 | 217 | "source": [ |
217 | | - "ax1, ax2, ax3 = pm.plot_posterior(trace, varnames=['mean'])\n", |
| 218 | + "ax1, ax2, ax3 = az.plot_posterior(trace, var_names=['mean'])\n", |
218 | 219 | "ax1.set_title('fortis')\n", |
219 | 220 | "ax2.set_title('scandens')\n", |
220 | 221 | "ax3.set_title('unknown')" |
|
239 | 240 | ], |
240 | 241 | "metadata": { |
241 | 242 | "kernelspec": { |
242 | | - "display_name": "bayesian-modelling-tutorial", |
| 243 | + "display_name": "Python 3", |
243 | 244 | "language": "python", |
244 | | - "name": "bayesian-modelling-tutorial" |
| 245 | + "name": "python3" |
245 | 246 | }, |
246 | 247 | "language_info": { |
247 | 248 | "codemirror_mode": { |
|
253 | 254 | "name": "python", |
254 | 255 | "nbconvert_exporter": "python", |
255 | 256 | "pygments_lexer": "ipython3", |
256 | | - "version": "3.6.6" |
| 257 | + "version": "3.6.8" |
257 | 258 | } |
258 | 259 | }, |
259 | 260 | "nbformat": 4, |
|
0 commit comments