Skip to content

Commit db1afed

Browse files
🎨 Update plots from pymc to arviz dependencies & replace param sd with sigma
1 parent 0975dfb commit db1afed

20 files changed

+1064
-1094
lines changed

examples/gaussian_processes/GP-Circular.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,9 @@
628628
],
629629
"metadata": {
630630
"kernelspec": {
631-
"display_name": "pymc3",
631+
"display_name": "Python (PyMC3 Dev)",
632632
"language": "python",
633-
"name": "pymc3"
633+
"name": "pymc3-dev"
634634
},
635635
"language_info": {
636636
"codemirror_mode": {
@@ -642,7 +642,7 @@
642642
"name": "python",
643643
"nbconvert_exporter": "python",
644644
"pygments_lexer": "ipython3",
645-
"version": "3.8.6"
645+
"version": "3.8.5"
646646
}
647647
},
648648
"nbformat": 4,

examples/gaussian_processes/GP-Kron.ipynb

+6-8
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
" # Place a GP prior over the function f.\n",
341341
" f = gp.prior(\"f\", Xs=Xs)\n",
342342
"\n",
343-
" y_ = pm.Normal(\"y_\", mu=f, sd=sigma, observed=y)"
343+
" y_ = pm.Normal(\"y_\", mu=f, sigma=sigma, observed=y)"
344344
]
345345
},
346346
{
@@ -448,7 +448,7 @@
448448
}
449449
],
450450
"source": [
451-
"pm.traceplot(\n",
451+
"az.plot_trace(\n",
452452
" tr,\n",
453453
" var_names=[\"ls1\", \"ls2\", \"eta\", \"sigma\"],\n",
454454
" lines={\"ls1\": l1_true, \"ls2\": l2_true, \"eta\": eta_true, \"sigma\": sigma_true},\n",
@@ -562,9 +562,7 @@
562562
{
563563
"cell_type": "code",
564564
"execution_count": 14,
565-
"metadata": {
566-
"scrolled": false
567-
},
565+
"metadata": {},
568566
"outputs": [
569567
{
570568
"name": "stdout",
@@ -631,9 +629,9 @@
631629
],
632630
"metadata": {
633631
"kernelspec": {
634-
"display_name": "Python 3",
632+
"display_name": "Python (PyMC3 Dev)",
635633
"language": "python",
636-
"name": "python3"
634+
"name": "pymc3-dev"
637635
},
638636
"language_info": {
639637
"codemirror_mode": {
@@ -645,7 +643,7 @@
645643
"name": "python",
646644
"nbconvert_exporter": "python",
647645
"pygments_lexer": "ipython3",
648-
"version": "3.7.7"
646+
"version": "3.8.5"
649647
}
650648
},
651649
"nbformat": 4,

examples/gaussian_processes/GP-Latent.ipynb

+5-5
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
},
105105
"outputs": [],
106106
"source": [
107+
"import warnings\n",
108+
"\n",
107109
"import arviz as az\n",
108110
"import matplotlib.pyplot as plt\n",
109111
"import numpy as np\n",
@@ -129,8 +131,6 @@
129131
"metadata": {},
130132
"outputs": [],
131133
"source": [
132-
"import warnings\n",
133-
"\n",
134134
"# mute future warnings from theano\n",
135135
"warnings.simplefilter(action=\"ignore\", category=FutureWarning)"
136136
]
@@ -996,9 +996,9 @@
996996
"metadata": {
997997
"anaconda-cloud": {},
998998
"kernelspec": {
999-
"display_name": "Python 3",
999+
"display_name": "Python (PyMC3 Dev)",
10001000
"language": "python",
1001-
"name": "python3"
1001+
"name": "pymc3-dev"
10021002
},
10031003
"language_info": {
10041004
"codemirror_mode": {
@@ -1010,7 +1010,7 @@
10101010
"name": "python",
10111011
"nbconvert_exporter": "python",
10121012
"pygments_lexer": "ipython3",
1013-
"version": "3.8.3"
1013+
"version": "3.8.5"
10141014
}
10151015
},
10161016
"nbformat": 4,

examples/gaussian_processes/GP-MaunaLoa2.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -2500,9 +2500,9 @@
25002500
"metadata": {
25012501
"anaconda-cloud": {},
25022502
"kernelspec": {
2503-
"display_name": "dev-pymc",
2503+
"display_name": "Python (PyMC3 Dev)",
25042504
"language": "python",
2505-
"name": "dev-pymc"
2505+
"name": "pymc3-dev"
25062506
},
25072507
"language_info": {
25082508
"codemirror_mode": {
@@ -2514,7 +2514,7 @@
25142514
"name": "python",
25152515
"nbconvert_exporter": "python",
25162516
"pygments_lexer": "ipython3",
2517-
"version": "3.6.11"
2517+
"version": "3.8.5"
25182518
}
25192519
},
25202520
"nbformat": 4,

examples/gaussian_processes/GP-MeansAndCovs.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -2463,9 +2463,9 @@
24632463
],
24642464
"metadata": {
24652465
"kernelspec": {
2466-
"display_name": "Python 3",
2466+
"display_name": "Python (PyMC3 Dev)",
24672467
"language": "python",
2468-
"name": "python3"
2468+
"name": "pymc3-dev"
24692469
},
24702470
"language_info": {
24712471
"codemirror_mode": {
@@ -2477,7 +2477,7 @@
24772477
"name": "python",
24782478
"nbconvert_exporter": "python",
24792479
"pygments_lexer": "ipython3",
2480-
"version": "3.7.6"
2480+
"version": "3.8.5"
24812481
},
24822482
"papermill": {
24832483
"duration": 93.784947,
@@ -2493,4 +2493,4 @@
24932493
},
24942494
"nbformat": 4,
24952495
"nbformat_minor": 4
2496-
}
2496+
}

examples/gaussian_processes/GP-SparseApprox.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,9 @@
477477
"metadata": {
478478
"anaconda-cloud": {},
479479
"kernelspec": {
480-
"display_name": "Python 3",
480+
"display_name": "Python (PyMC3 Dev)",
481481
"language": "python",
482-
"name": "python3"
482+
"name": "pymc3-dev"
483483
},
484484
"language_info": {
485485
"codemirror_mode": {
@@ -491,7 +491,7 @@
491491
"name": "python",
492492
"nbconvert_exporter": "python",
493493
"pygments_lexer": "ipython3",
494-
"version": "3.7.7"
494+
"version": "3.8.5"
495495
}
496496
},
497497
"nbformat": 4,

examples/gaussian_processes/GP-TProcess.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
"name": "python",
363363
"nbconvert_exporter": "python",
364364
"pygments_lexer": "ipython3",
365-
"version": "3.8.2"
365+
"version": "3.8.5"
366366
}
367367
},
368368
"nbformat": 4,

examples/gaussian_processes/GP-smoothing.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,9 @@
585585
"metadata": {
586586
"anaconda-cloud": {},
587587
"kernelspec": {
588-
"display_name": "Python 3",
588+
"display_name": "Python (PyMC3 Dev)",
589589
"language": "python",
590-
"name": "python3"
590+
"name": "pymc3-dev"
591591
},
592592
"language_info": {
593593
"codemirror_mode": {
@@ -599,7 +599,7 @@
599599
"name": "python",
600600
"nbconvert_exporter": "python",
601601
"pygments_lexer": "ipython3",
602-
"version": "3.7.7"
602+
"version": "3.8.5"
603603
},
604604
"latex_envs": {
605605
"bibliofile": "biblio.bib",

examples/gaussian_processes/gaussian_process.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@
404404
"metadata": {
405405
"anaconda-cloud": {},
406406
"kernelspec": {
407-
"display_name": "Python 3",
407+
"display_name": "Python (PyMC3 Dev)",
408408
"language": "python",
409-
"name": "python3"
409+
"name": "pymc3-dev"
410410
},
411411
"language_info": {
412412
"codemirror_mode": {
@@ -418,7 +418,7 @@
418418
"name": "python",
419419
"nbconvert_exporter": "python",
420420
"pygments_lexer": "ipython3",
421-
"version": "3.7.7"
421+
"version": "3.8.5"
422422
}
423423
},
424424
"nbformat": 4,

examples/generalized_linear_models/GLM-hierarchical-binominal-model.ipynb

+59-58
Large diffs are not rendered by default.

examples/generalized_linear_models/GLM-hierarchical.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@
467467
}
468468
],
469469
"source": [
470-
"pm.traceplot(hierarchical_trace, var_names=[\"mu_a\", \"mu_b\", \"sigma_a\", \"sigma_b\", \"eps\"]);"
470+
"az.plot_trace(hierarchical_trace, var_names=[\"mu_a\", \"mu_b\", \"sigma_a\", \"sigma_b\", \"eps\"]);"
471471
]
472472
},
473473
{
@@ -500,7 +500,7 @@
500500
}
501501
],
502502
"source": [
503-
"pm.traceplot(hierarchical_trace, var_names=[\"a\"], coords={\"a_dim_0\": range(5)});"
503+
"az.plot_trace(hierarchical_trace, var_names=[\"a\"], coords={\"a_dim_0\": range(5)});"
504504
]
505505
},
506506
{
@@ -764,7 +764,7 @@
764764
"name": "python",
765765
"nbconvert_exporter": "python",
766766
"pygments_lexer": "ipython3",
767-
"version": "3.7.7"
767+
"version": "3.8.5"
768768
},
769769
"latex_envs": {
770770
"bibliofile": "biblio.bib",

examples/generalized_linear_models/GLM-linear.ipynb

+48-41
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)