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

Rename pymc3 -> pymc #165

Merged
merged 14 commits into from
Mar 23, 2022
Merged
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Thank you for opening a pull request!


Please check our [style guide](https://docs.pymc.io/en/latest/contributing/jupyter_style.html), and also make sure that the notebooks you've modified pass the `pre-commit` checks. If, for example, you modified `notebook1.ipynb` and `notebook2.ipynb`, you could do this by running:

```bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: pre-commit
on:
pull_request:
push:
branches: [master]
branches: [main]

jobs:
pre-commit:
Expand Down
4 changes: 2 additions & 2 deletions BCM/CaseStudies/ExtrasensoryPerception.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import scipy as sp\n",
"\n",
"from matplotlib import gridspec\n",
Expand Down Expand Up @@ -623,7 +623,7 @@
"output_type": "stream",
"text": [
"arviz 0.7.0\n",
"pymc3 3.8\n",
"pymc 3.8\n",
"scipy 1.3.1\n",
"numpy 1.17.3\n",
"last updated: Mon Apr 27 2020 \n",
Expand Down
12 changes: 6 additions & 6 deletions BCM/CaseStudies/HeuristicDecisionMaking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import scipy.io as sio\n",
"\n",
"from scipy import stats\n",
Expand Down Expand Up @@ -179,7 +179,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc3/lib/python3.7/site-packages/pymc3/sampling.py:1585: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n",
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc/lib/python3.7/site-packages/pymc/sampling.py:1585: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n",
" \"samples parameter is smaller than nchains times ndraws, some draws \"\n"
]
},
Expand Down Expand Up @@ -564,7 +564,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc3/lib/python3.7/site-packages/ipykernel_launcher.py:8: FutureWarning: arrays to stack must be passed as a \"sequence\" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.\n",
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc/lib/python3.7/site-packages/ipykernel_launcher.py:8: FutureWarning: arrays to stack must be passed as a \"sequence\" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.\n",
" \n"
]
},
Expand Down Expand Up @@ -769,7 +769,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc3/lib/python3.7/site-packages/pymc3/sampling.py:1585: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n",
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc/lib/python3.7/site-packages/pymc/sampling.py:1585: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n",
" \"samples parameter is smaller than nchains times ndraws, some draws \"\n"
]
},
Expand Down Expand Up @@ -844,7 +844,7 @@
"text": [
"numpy 1.18.1\n",
"arviz 0.7.0\n",
"pymc3 3.8\n",
"pymc 3.8\n",
"last updated: Mon Apr 27 2020 \n",
"\n",
"CPython 3.7.7\n",
Expand All @@ -861,7 +861,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
6 changes: 3 additions & 3 deletions BCM/CaseStudies/MemoryRetention.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import seaborn as sns\n",
"import theano\n",
"\n",
Expand Down Expand Up @@ -994,7 +994,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"pymc3 3.8\n",
"pymc 3.8\n",
"pandas 1.0.3\n",
"arviz 0.7.0\n",
"seaborn 0.10.0\n",
Expand All @@ -1016,7 +1016,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
6 changes: 3 additions & 3 deletions BCM/CaseStudies/MultinomialProcessingTrees.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import scipy.special as sp\n",
"import theano\n",
"\n",
Expand Down Expand Up @@ -859,7 +859,7 @@
"output_type": "stream",
"text": [
"numpy 1.18.1\n",
"pymc3 3.8\n",
"pymc 3.8\n",
"theano 1.0.4\n",
"arviz 0.7.0\n",
"last updated: Mon Apr 27 2020 \n",
Expand All @@ -878,7 +878,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
6 changes: 3 additions & 3 deletions BCM/CaseStudies/NumberConceptDevelopment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import scipy.io as sio\n",
"import theano\n",
"\n",
Expand Down Expand Up @@ -1024,7 +1024,7 @@
"text": [
"theano 1.0.4\n",
"numpy 1.18.1\n",
"pymc3 3.8\n",
"pymc 3.8\n",
"arviz 0.7.0\n",
"last updated: Mon Apr 27 2020 \n",
"\n",
Expand All @@ -1042,7 +1042,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
8 changes: 4 additions & 4 deletions BCM/CaseStudies/PsychophysicalFunctions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import theano\n",
"\n",
"from matplotlib import gridspec\n",
"from pymc3.step_methods.hmc import quadpotential\n",
"from pymc.step_methods.hmc import quadpotential\n",
"from scipy import stats\n",
"from theano import tensor as tt\n",
"\n",
Expand Down Expand Up @@ -1169,7 +1169,7 @@
"numpy 1.18.1\n",
"theano 1.0.4\n",
"arviz 0.7.0\n",
"pymc3 3.8\n",
"pymc 3.8\n",
"pandas 1.0.3\n",
"last updated: Mon Apr 27 2020 \n",
"\n",
Expand All @@ -1187,7 +1187,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
8 changes: 4 additions & 4 deletions BCM/CaseStudies/SignalDetectionTheory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import seaborn as sns\n",
"\n",
"from matplotlib.patches import Polygon\n",
Expand Down Expand Up @@ -672,7 +672,7 @@
"metadata": {},
"source": [
"### Note from Junpeng Lao\n",
"Sampling using HMC (e.g., in STAN and PyMC3), there are better way to diagnose biased inference [[1]](http://mc-stan.org/documentation/case-studies/divergences_and_bias.html), [[2]](http://pymc-devs.github.io/pymc3/notebooks/Diagnosing_biased_Inference_with_Divergences.html)."
"Sampling using HMC (e.g., in STAN and PyMC), there are better way to diagnose biased inference [[1]](http://mc-stan.org/documentation/case-studies/divergences_and_bias.html), [[2]](http://pymc-devs.github.io/pymc/notebooks/Diagnosing_biased_Inference_with_Divergences.html)."
]
},
{
Expand Down Expand Up @@ -819,7 +819,7 @@
"source": [
"As shown above, there are a lot of divergences in the trace, and the energy plot is very different from the energy_diff. This is a strong indication of bias in the estimation, and better reparameterization is needed.\n",
"\n",
"Moreover, the reparameterization, which works better in BUGS/JAGS using Gibbs sampler, actually perform worse using NUTS. Again, this demonstrates that many of the tricks and intuition we got using BUGS/JAGS might not translate to PyMC3 and STAN."
"Moreover, the reparameterization, which works better in BUGS/JAGS using Gibbs sampler, actually perform worse using NUTS. Again, this demonstrates that many of the tricks and intuition we got using BUGS/JAGS might not translate to PyMC and STAN."
]
},
{
Expand Down Expand Up @@ -1061,7 +1061,7 @@
"output_type": "stream",
"name": "stdout",
"text": [
"seaborn 0.11.0\npymc3 3.9.2\npandas 1.0.3\narviz 0.10.0\nnumpy 1.18.2\nlast updated: Mon Nov 23 2020 \n\nCPython 3.8.5\nIPython 7.13.0\nwatermark 2.0.2\n"
"seaborn 0.11.0\npymc 3.9.2\npandas 1.0.3\narviz 0.10.0\nnumpy 1.18.2\nlast updated: Mon Nov 23 2020 \n\nCPython 3.8.5\nIPython 7.13.0\nwatermark 2.0.2\n"
]
}
],
Expand Down
6 changes: 3 additions & 3 deletions BCM/CaseStudies/TheBARTModelofRiskTaking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"\n",
"from scipy import stats\n",
"from theano import tensor as tt\n",
Expand Down Expand Up @@ -463,7 +463,7 @@
"text": [
"numpy 1.18.1\n",
"arviz 0.7.0\n",
"pymc3 3.8\n",
"pymc 3.8\n",
"pandas 1.0.3\n",
"last updated: Tue Apr 28 2020 \n",
"\n",
Expand All @@ -481,7 +481,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
10 changes: 5 additions & 5 deletions BCM/CaseStudies/TheGCMModelofCategorization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import scipy.io as sio\n",
"import seaborn as sns\n",
"import theano\n",
Expand Down Expand Up @@ -201,7 +201,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc3/lib/python3.7/site-packages/pymc3/sampling.py:1585: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n",
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc/lib/python3.7/site-packages/pymc/sampling.py:1585: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n",
" \"samples parameter is smaller than nchains times ndraws, some draws \"\n"
]
},
Expand Down Expand Up @@ -696,7 +696,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc3/lib/python3.7/site-packages/pymc3/sampling.py:1585: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n",
"/Users/alex_andorra/opt/anaconda3/envs/BCM_pymc/lib/python3.7/site-packages/pymc/sampling.py:1585: UserWarning: samples parameter is smaller than nchains times ndraws, some draws and/or chains may not be represented in the returned posterior predictive sample\n",
" \"samples parameter is smaller than nchains times ndraws, some draws \"\n"
]
},
Expand Down Expand Up @@ -778,7 +778,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"pymc3 3.8\n",
"pymc 3.8\n",
"pandas 1.0.3\n",
"numpy 1.18.1\n",
"arviz 0.7.0\n",
Expand All @@ -800,7 +800,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
6 changes: 3 additions & 3 deletions BCM/CaseStudies/TheSIMPLEModelofMemory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"\n",
"from scipy import stats\n",
"from theano import tensor as tt\n",
Expand Down Expand Up @@ -830,7 +830,7 @@
"pandas 1.0.3\n",
"numpy 1.18.1\n",
"arviz 0.7.0\n",
"pymc3 3.8\n",
"pymc 3.8\n",
"last updated: Tue Apr 28 2020 \n",
"\n",
"CPython 3.7.7\n",
Expand All @@ -847,7 +847,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
4 changes: 2 additions & 2 deletions BCM/ModelSelection/ComparingBinomialRates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"import theano.tensor as tt\n",
"\n",
"from scipy import stats\n",
Expand Down Expand Up @@ -1246,7 +1246,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"pymc3 3.9.2\n",
"pymc 3.9.2\n",
"numpy 1.18.2\n",
"arviz 0.10.0\n",
"last updated: Thu Nov 19 2020 \n",
Expand Down
6 changes: 3 additions & 3 deletions BCM/ModelSelection/ComparingGaussianMeans.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"import arviz as az\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pymc3 as pm\n",
"import pymc as pm\n",
"\n",
"from scipy import stats\n",
"\n",
Expand Down Expand Up @@ -632,7 +632,7 @@
"pandas 1.0.3\n",
"arviz 0.7.0\n",
"numpy 1.18.1\n",
"pymc3 3.8\n",
"pymc 3.8\n",
"last updated: Sat Apr 25 2020 \n",
"\n",
"CPython 3.7.7\n",
Expand All @@ -649,7 +649,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "BCM_pymc3",
"display_name": "BCM_pymc",
"language": "python",
"name": "bcm_pymc3"
},
Expand Down
Loading