Skip to content

Replacing PyMC3 plots w/ Arviz plots & sigma Param change [Part 4] #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions examples/gaussian_processes/GP-Kron.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
" # Place a GP prior over the function f.\n",
" f = gp.prior(\"f\", Xs=Xs)\n",
"\n",
" y_ = pm.Normal(\"y_\", mu=f, sd=sigma, observed=y)"
" y_ = pm.Normal(\"y_\", mu=f, sigma=sigma, observed=y)"
]
},
{
Expand Down Expand Up @@ -448,7 +448,7 @@
}
],
"source": [
"pm.traceplot(\n",
"az.plot_trace(\n",
" tr,\n",
" var_names=[\"ls1\", \"ls2\", \"eta\", \"sigma\"],\n",
" lines={\"ls1\": l1_true, \"ls2\": l2_true, \"eta\": eta_true, \"sigma\": sigma_true},\n",
Expand Down Expand Up @@ -562,9 +562,7 @@
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -631,9 +629,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python (PyMC3 Dev)",
"language": "python",
"name": "python3"
"name": "pymc3-dev"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -645,7 +643,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down
10 changes: 5 additions & 5 deletions examples/gaussian_processes/GP-Latent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
},
"outputs": [],
"source": [
"import warnings\n",
"\n",
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
Expand All @@ -129,8 +131,6 @@
"metadata": {},
"outputs": [],
"source": [
"import warnings\n",
"\n",
"# mute future warnings from theano\n",
"warnings.simplefilter(action=\"ignore\", category=FutureWarning)"
]
Expand Down Expand Up @@ -996,9 +996,9 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python (PyMC3 Dev)",
"language": "python",
"name": "python3"
"name": "pymc3-dev"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1010,7 +1010,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/generalized_linear_models/GLM-hierarchical.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
}
],
"source": [
"pm.traceplot(hierarchical_trace, var_names=[\"mu_a\", \"mu_b\", \"sigma_a\", \"sigma_b\", \"eps\"]);"
"az.plot_trace(hierarchical_trace, var_names=[\"mu_a\", \"mu_b\", \"sigma_a\", \"sigma_b\", \"eps\"]);"
]
},
{
Expand Down Expand Up @@ -500,7 +500,7 @@
}
],
"source": [
"pm.traceplot(hierarchical_trace, var_names=[\"a\"], coords={\"a_dim_0\": range(5)});"
"az.plot_trace(hierarchical_trace, var_names=[\"a\"], coords={\"a_dim_0\": range(5)});"
]
},
{
Expand Down Expand Up @@ -764,7 +764,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.8.5"
},
"latex_envs": {
"bibliofile": "biblio.bib",
Expand Down
56 changes: 37 additions & 19 deletions examples/generalized_linear_models/GLM-linear.ipynb

Large diffs are not rendered by default.

145 changes: 81 additions & 64 deletions examples/generalized_linear_models/GLM-logistic.ipynb

Large diffs are not rendered by default.

1,184 changes: 561 additions & 623 deletions examples/generalized_linear_models/GLM-model-selection.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.