Skip to content
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

Replacing PyMC3 plots w/ Arviz plots & sigma Param change [Part 9] #21

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
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"source": [
"from warnings import filterwarnings\n",
"\n",
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pymc3 as pm\n",
Expand Down Expand Up @@ -787,7 +788,7 @@
}
],
"source": [
"pm.traceplot(trace);"
"az.plot_trace(trace);"
]
},
{
Expand Down Expand Up @@ -861,7 +862,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.8.5"
},
"latex_envs": {
"bibliofile": "biblio.bib",
Expand Down
163 changes: 84 additions & 79 deletions examples/variational_inference/empirical-approx-overview.ipynb

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions examples/variational_inference/variational_api_quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"outputs": [],
"source": [
"%matplotlib inline\n",
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pymc3 as pm\n",
Expand Down Expand Up @@ -164,7 +165,7 @@
}
],
"source": [
"pm.traceplot(trace);"
"az.plot_trace(trace);"
]
},
{
Expand Down Expand Up @@ -272,7 +273,7 @@
}
],
"source": [
"pm.plot_posterior(mean_field.sample(1000), color=\"LightSeaGreen\");"
"az.plot_posterior(mean_field.sample(1000), color=\"LightSeaGreen\");"
]
},
{
Expand Down Expand Up @@ -1307,7 +1308,7 @@
}
],
"source": [
"pm.plot_posterior(trace_approx.sample(10000));"
"az.plot_posterior(trace_approx.sample(10000));"
]
},
{
Expand Down Expand Up @@ -2108,9 +2109,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 @@ -2122,7 +2123,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.8.5"
}
},
"nbformat": 4,
Expand Down