Skip to content

Commit 0f0ecf5

Browse files
authored
Merge pull request #165 from fonnesbeck/pymc_rename
Rename pymc3 -> pymc
2 parents 81babb7 + 39dc7fb commit 0f0ecf5

File tree

79 files changed

+524
-518
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+524
-518
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Thank you for opening a pull request!
22

3+
34
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:
45

56
```bash

BCM/CaseStudies/ExtrasensoryPerception.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"import arviz as az\n",
1212
"import matplotlib.pyplot as plt\n",
1313
"import numpy as np\n",
14-
"import pymc3 as pm\n",
14+
"import pymc as pm\n",
1515
"import scipy as sp\n",
1616
"\n",
1717
"from matplotlib import gridspec\n",
@@ -623,7 +623,7 @@
623623
"output_type": "stream",
624624
"text": [
625625
"arviz 0.7.0\n",
626-
"pymc3 3.8\n",
626+
"pymc 3.8\n",
627627
"scipy 1.3.1\n",
628628
"numpy 1.17.3\n",
629629
"last updated: Mon Apr 27 2020 \n",

BCM/CaseStudies/HeuristicDecisionMaking.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"import arviz as az\n",
1010
"import matplotlib.pyplot as plt\n",
1111
"import numpy as np\n",
12-
"import pymc3 as pm\n",
12+
"import pymc as pm\n",
1313
"import scipy.io as sio\n",
1414
"\n",
1515
"from scipy import stats\n",
@@ -179,7 +179,7 @@
179179
"name": "stderr",
180180
"output_type": "stream",
181181
"text": [
182-
"/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",
182+
"/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",
183183
" \"samples parameter is smaller than nchains times ndraws, some draws \"\n"
184184
]
185185
},
@@ -564,7 +564,7 @@
564564
"name": "stderr",
565565
"output_type": "stream",
566566
"text": [
567-
"/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",
567+
"/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",
568568
" \n"
569569
]
570570
},
@@ -769,7 +769,7 @@
769769
"name": "stderr",
770770
"output_type": "stream",
771771
"text": [
772-
"/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",
772+
"/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",
773773
" \"samples parameter is smaller than nchains times ndraws, some draws \"\n"
774774
]
775775
},
@@ -844,7 +844,7 @@
844844
"text": [
845845
"numpy 1.18.1\n",
846846
"arviz 0.7.0\n",
847-
"pymc3 3.8\n",
847+
"pymc 3.8\n",
848848
"last updated: Mon Apr 27 2020 \n",
849849
"\n",
850850
"CPython 3.7.7\n",
@@ -861,7 +861,7 @@
861861
],
862862
"metadata": {
863863
"kernelspec": {
864-
"display_name": "BCM_pymc3",
864+
"display_name": "BCM_pymc",
865865
"language": "python",
866866
"name": "bcm_pymc3"
867867
},

BCM/CaseStudies/MemoryRetention.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"import matplotlib.pyplot as plt\n",
1313
"import numpy as np\n",
1414
"import pandas as pd\n",
15-
"import pymc3 as pm\n",
15+
"import pymc as pm\n",
1616
"import seaborn as sns\n",
1717
"import theano\n",
1818
"\n",
@@ -994,7 +994,7 @@
994994
"name": "stdout",
995995
"output_type": "stream",
996996
"text": [
997-
"pymc3 3.8\n",
997+
"pymc 3.8\n",
998998
"pandas 1.0.3\n",
999999
"arviz 0.7.0\n",
10001000
"seaborn 0.10.0\n",
@@ -1016,7 +1016,7 @@
10161016
],
10171017
"metadata": {
10181018
"kernelspec": {
1019-
"display_name": "BCM_pymc3",
1019+
"display_name": "BCM_pymc",
10201020
"language": "python",
10211021
"name": "bcm_pymc3"
10221022
},

BCM/CaseStudies/MultinomialProcessingTrees.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"import arviz as az\n",
1212
"import matplotlib.pyplot as plt\n",
1313
"import numpy as np\n",
14-
"import pymc3 as pm\n",
14+
"import pymc as pm\n",
1515
"import scipy.special as sp\n",
1616
"import theano\n",
1717
"\n",
@@ -859,7 +859,7 @@
859859
"output_type": "stream",
860860
"text": [
861861
"numpy 1.18.1\n",
862-
"pymc3 3.8\n",
862+
"pymc 3.8\n",
863863
"theano 1.0.4\n",
864864
"arviz 0.7.0\n",
865865
"last updated: Mon Apr 27 2020 \n",
@@ -878,7 +878,7 @@
878878
],
879879
"metadata": {
880880
"kernelspec": {
881-
"display_name": "BCM_pymc3",
881+
"display_name": "BCM_pymc",
882882
"language": "python",
883883
"name": "bcm_pymc3"
884884
},

BCM/CaseStudies/NumberConceptDevelopment.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"import arviz as az\n",
1212
"import matplotlib.pyplot as plt\n",
1313
"import numpy as np\n",
14-
"import pymc3 as pm\n",
14+
"import pymc as pm\n",
1515
"import scipy.io as sio\n",
1616
"import theano\n",
1717
"\n",
@@ -1024,7 +1024,7 @@
10241024
"text": [
10251025
"theano 1.0.4\n",
10261026
"numpy 1.18.1\n",
1027-
"pymc3 3.8\n",
1027+
"pymc 3.8\n",
10281028
"arviz 0.7.0\n",
10291029
"last updated: Mon Apr 27 2020 \n",
10301030
"\n",
@@ -1042,7 +1042,7 @@
10421042
],
10431043
"metadata": {
10441044
"kernelspec": {
1045-
"display_name": "BCM_pymc3",
1045+
"display_name": "BCM_pymc",
10461046
"language": "python",
10471047
"name": "bcm_pymc3"
10481048
},

BCM/CaseStudies/PsychophysicalFunctions.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"import matplotlib.pyplot as plt\n",
1111
"import numpy as np\n",
1212
"import pandas as pd\n",
13-
"import pymc3 as pm\n",
13+
"import pymc as pm\n",
1414
"import theano\n",
1515
"\n",
1616
"from matplotlib import gridspec\n",
17-
"from pymc3.step_methods.hmc import quadpotential\n",
17+
"from pymc.step_methods.hmc import quadpotential\n",
1818
"from scipy import stats\n",
1919
"from theano import tensor as tt\n",
2020
"\n",
@@ -1169,7 +1169,7 @@
11691169
"numpy 1.18.1\n",
11701170
"theano 1.0.4\n",
11711171
"arviz 0.7.0\n",
1172-
"pymc3 3.8\n",
1172+
"pymc 3.8\n",
11731173
"pandas 1.0.3\n",
11741174
"last updated: Mon Apr 27 2020 \n",
11751175
"\n",
@@ -1187,7 +1187,7 @@
11871187
],
11881188
"metadata": {
11891189
"kernelspec": {
1190-
"display_name": "BCM_pymc3",
1190+
"display_name": "BCM_pymc",
11911191
"language": "python",
11921192
"name": "bcm_pymc3"
11931193
},

BCM/CaseStudies/SignalDetectionTheory.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"import matplotlib.pyplot as plt\n",
1111
"import numpy as np\n",
1212
"import pandas as pd\n",
13-
"import pymc3 as pm\n",
13+
"import pymc as pm\n",
1414
"import seaborn as sns\n",
1515
"\n",
1616
"from matplotlib.patches import Polygon\n",
@@ -672,7 +672,7 @@
672672
"metadata": {},
673673
"source": [
674674
"### Note from Junpeng Lao\n",
675-
"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)."
675+
"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)."
676676
]
677677
},
678678
{
@@ -819,7 +819,7 @@
819819
"source": [
820820
"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",
821821
"\n",
822-
"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."
822+
"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."
823823
]
824824
},
825825
{
@@ -1061,7 +1061,7 @@
10611061
"output_type": "stream",
10621062
"name": "stdout",
10631063
"text": [
1064-
"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"
1064+
"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"
10651065
]
10661066
}
10671067
],

BCM/CaseStudies/TheBARTModelofRiskTaking.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"import matplotlib.pyplot as plt\n",
1111
"import numpy as np\n",
1212
"import pandas as pd\n",
13-
"import pymc3 as pm\n",
13+
"import pymc as pm\n",
1414
"\n",
1515
"from scipy import stats\n",
1616
"from theano import tensor as tt\n",
@@ -463,7 +463,7 @@
463463
"text": [
464464
"numpy 1.18.1\n",
465465
"arviz 0.7.0\n",
466-
"pymc3 3.8\n",
466+
"pymc 3.8\n",
467467
"pandas 1.0.3\n",
468468
"last updated: Tue Apr 28 2020 \n",
469469
"\n",
@@ -481,7 +481,7 @@
481481
],
482482
"metadata": {
483483
"kernelspec": {
484-
"display_name": "BCM_pymc3",
484+
"display_name": "BCM_pymc",
485485
"language": "python",
486486
"name": "bcm_pymc3"
487487
},

BCM/CaseStudies/TheGCMModelofCategorization.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"import matplotlib.pyplot as plt\n",
1111
"import numpy as np\n",
1212
"import pandas as pd\n",
13-
"import pymc3 as pm\n",
13+
"import pymc as pm\n",
1414
"import scipy.io as sio\n",
1515
"import seaborn as sns\n",
1616
"import theano\n",
@@ -201,7 +201,7 @@
201201
"name": "stderr",
202202
"output_type": "stream",
203203
"text": [
204-
"/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",
204+
"/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",
205205
" \"samples parameter is smaller than nchains times ndraws, some draws \"\n"
206206
]
207207
},
@@ -696,7 +696,7 @@
696696
"name": "stderr",
697697
"output_type": "stream",
698698
"text": [
699-
"/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",
699+
"/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",
700700
" \"samples parameter is smaller than nchains times ndraws, some draws \"\n"
701701
]
702702
},
@@ -778,7 +778,7 @@
778778
"name": "stdout",
779779
"output_type": "stream",
780780
"text": [
781-
"pymc3 3.8\n",
781+
"pymc 3.8\n",
782782
"pandas 1.0.3\n",
783783
"numpy 1.18.1\n",
784784
"arviz 0.7.0\n",
@@ -800,7 +800,7 @@
800800
],
801801
"metadata": {
802802
"kernelspec": {
803-
"display_name": "BCM_pymc3",
803+
"display_name": "BCM_pymc",
804804
"language": "python",
805805
"name": "bcm_pymc3"
806806
},

BCM/CaseStudies/TheSIMPLEModelofMemory.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"import matplotlib.pyplot as plt\n",
1313
"import numpy as np\n",
1414
"import pandas as pd\n",
15-
"import pymc3 as pm\n",
15+
"import pymc as pm\n",
1616
"\n",
1717
"from scipy import stats\n",
1818
"from theano import tensor as tt\n",
@@ -830,7 +830,7 @@
830830
"pandas 1.0.3\n",
831831
"numpy 1.18.1\n",
832832
"arviz 0.7.0\n",
833-
"pymc3 3.8\n",
833+
"pymc 3.8\n",
834834
"last updated: Tue Apr 28 2020 \n",
835835
"\n",
836836
"CPython 3.7.7\n",
@@ -847,7 +847,7 @@
847847
],
848848
"metadata": {
849849
"kernelspec": {
850-
"display_name": "BCM_pymc3",
850+
"display_name": "BCM_pymc",
851851
"language": "python",
852852
"name": "bcm_pymc3"
853853
},

BCM/ModelSelection/ComparingBinomialRates.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"import arviz as az\n",
1010
"import matplotlib.pyplot as plt\n",
1111
"import numpy as np\n",
12-
"import pymc3 as pm\n",
12+
"import pymc as pm\n",
1313
"import theano.tensor as tt\n",
1414
"\n",
1515
"from scipy import stats\n",
@@ -1246,7 +1246,7 @@
12461246
"name": "stdout",
12471247
"output_type": "stream",
12481248
"text": [
1249-
"pymc3 3.9.2\n",
1249+
"pymc 3.9.2\n",
12501250
"numpy 1.18.2\n",
12511251
"arviz 0.10.0\n",
12521252
"last updated: Thu Nov 19 2020 \n",

BCM/ModelSelection/ComparingGaussianMeans.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"import arviz as az\n",
1010
"import matplotlib.pyplot as plt\n",
1111
"import numpy as np\n",
12-
"import pymc3 as pm\n",
12+
"import pymc as pm\n",
1313
"\n",
1414
"from scipy import stats\n",
1515
"\n",
@@ -632,7 +632,7 @@
632632
"pandas 1.0.3\n",
633633
"arviz 0.7.0\n",
634634
"numpy 1.18.1\n",
635-
"pymc3 3.8\n",
635+
"pymc 3.8\n",
636636
"last updated: Sat Apr 25 2020 \n",
637637
"\n",
638638
"CPython 3.7.7\n",
@@ -649,7 +649,7 @@
649649
],
650650
"metadata": {
651651
"kernelspec": {
652-
"display_name": "BCM_pymc3",
652+
"display_name": "BCM_pymc",
653653
"language": "python",
654654
"name": "bcm_pymc3"
655655
},

0 commit comments

Comments
 (0)