Skip to content

Commit 3731940

Browse files
committed
Merge branch 'master' into binomial_random
2 parents 48b9072 + 1c0f113 commit 3731940

40 files changed

+8294
-907
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ install:
1212
- pip install coveralls pylint
1313

1414
env:
15-
- PYTHON_VERSION=2.7 TESTCMD="--durations=10 --ignore=pymc3/tests/test_examples.py --cov-append --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_variational_inference.py --ignore=pymc3/tests/test_shared.py --ignore=pymc3/tests/test_smc.py"
15+
- PYTHON_VERSION=2.7 TESTCMD="--durations=10 --ignore=pymc3/tests/test_examples.py --cov-append --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_variational_inference.py --ignore=pymc3/tests/test_shared.py --ignore=pymc3/tests/test_smc.py --ignore=pymc3/tests/test_updates.py"
1616
- PYTHON_VERSION=2.7 RUN_PYLINT="true" TESTCMD="--durations=10 --cov-append pymc3/tests/test_distributions_random.py pymc3/tests/test_shared.py pymc3/tests/test_smc.py"
17-
- PYTHON_VERSION=2.7 TESTCMD="--durations=10 --cov-append pymc3/tests/test_examples.py pymc3/tests/test_variational_inference.py"
18-
- PYTHON_VERSION=3.6 TESTCMD="--durations=10 --cov-append --ignore=pymc3/tests/test_examples.py --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_variational_inference.py --ignore=pymc3/tests/test_shared.py --ignore=pymc3/tests/test_smc.py"
17+
- PYTHON_VERSION=2.7 TESTCMD="--durations=10 --cov-append pymc3/tests/test_examples.py pymc3/tests/test_variational_inference.py pymc3/tests/test_updates.py"
18+
- PYTHON_VERSION=3.6 TESTCMD="--durations=10 --cov-append --ignore=pymc3/tests/test_examples.py --ignore=pymc3/tests/test_distributions_random.py --ignore=pymc3/tests/test_variational_inference.py --ignore=pymc3/tests/test_shared.py --ignore=pymc3/tests/test_smc.py --ignore=pymc3/tests/test_updates.py"
1919
- PYTHON_VERSION=3.6 TESTCMD="--durations=10 --cov-append pymc3/tests/test_distributions_random.py pymc3/tests/test_shared.py pymc3/tests/test_smc.py"
20-
- PYTHON_VERSION=3.6 TESTCMD="--durations=10 --cov-append pymc3/tests/test_examples.py pymc3/tests/test_variational_inference.py"
20+
- PYTHON_VERSION=3.6 TESTCMD="--durations=10 --cov-append pymc3/tests/test_examples.py pymc3/tests/test_variational_inference.py pymc3/tests/test_updates.py"
2121
script:
2222
- . ./scripts/test.sh $TESTCMD
2323

README.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,22 @@ Features
3434
Getting started
3535
---------------
3636

37+
If you already know about Bayesian statistics:
38+
39+
- `API quickstart guide <http://pymc-devs.github.io/pymc3/notebooks/api_quickstart.html>`__
3740
- The `PyMC3 tutorial <http://pymc-devs.github.io/pymc3/notebooks/getting_started.html>`__
3841
- `PyMC3 examples <http://pymc-devs.github.io/pymc3/examples.html>`__
3942
and the `API reference <http://pymc-devs.github.io/pymc3/api.html>`__
40-
- `Probabilistic Programming and Bayesian Methods for Hackers <https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers>`__
41-
- `Bayesian Modelling in Python -- tutorials on Bayesian statistics and
42-
PyMC3 as Jupyter Notebooks by Mark
43-
Dregan <https://github.com/markdregan/Bayesian-Modelling-in-Python>`__
44-
- `Talk at PyData London 2016 on
45-
PyMC3 <https://www.youtube.com/watch?v=LlzVlqVzeD8>`__
46-
- `PyMC3 port of the models presented in the book "Doing Bayesian Data
47-
Analysis" by John
48-
Kruschke <https://github.com/aloctavodia/Doing_bayesian_data_analysis>`__
49-
- `PyMC3 port of the models presented in the book "Bayesian Cognitive Modeling" by Michael Lee and EJ Wagenmakers <https://github.com/junpenglao/Bayesian-Cognitive-Modeling-in-Pymc3>`__
50-
- `Coyle P. (2016) Probabilistic programming and PyMC3. European Scientific Python Conference 2015 (Cambridge, UK) <http://adsabs.harvard.edu/abs/2016arXiv160700379C>`__
51-
- `Bayesian Analysis with Python by Osvaldo Martin <https://www.packtpub.com/big-data-and-business-intelligence/bayesian-analysis-python>`__ (and `errata <https://github.com/aloctavodia/BAP>`__)
43+
44+
If you want to learn Bayesian statistics together with PyMC3:
45+
46+
- `Probabilistic Programming and Bayesian Methods for Hackers <https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers>`__: Fantastic book with many applied code examples.
47+
- `PyMC3 port of the models presented in the book "Doing Bayesian Data Analysis" by John Kruschke <https://github.com/aloctavodia/Doing_bayesian_data_analysis>`__: Principled introduction to Bayesian data analysis.
48+
- `PyMC3 port of the examples in "Statistical Rethinking A Bayesian Course with Examples in R and Stan" by Richard McElreath <https://github.com/aloctavodia/Statistical-Rethinking-with-Python-and-PyMC3>`__
49+
- `PyMC3 port of the models presented in the book "Bayesian Cognitive Modeling" by Michael Lee and EJ Wagenmakers <https://github.com/junpenglao/Bayesian-Cognitive-Modeling-in-Pymc3>`__: Focused on using Bayesian statistics in cognitive modeling.
50+
- `Bayesian Analysis with Python by Osvaldo Martin <https://www.packtpub.com/big-data-and-business-intelligence/bayesian-analysis-python>`__ (and `errata <https://github.com/aloctavodia/BAP>`__): Great introduction.
51+
52+
There are also several talks on PyMC3 which are gathered in this `YouTube playlist <https://www.youtube.com/playlist?list=PL1Ma_1DBbE82OVW8Fz_6Ts1oOeyOAiovy>`__
5253

5354
Installation
5455
------------

RELEASE-NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
* [Add Gaussian Process submodule](http://pymc-devs.github.io/pymc3/notebooks/GP-introduction.html)
88

9+
* sample() defaults changed: tuning is enabled for the first 500 samples which are then discarded from the trace as burn-in.
10+
911
* Many optimizations and speed-ups.
1012

1113
* NUTS implementation now matches current Stan implementation.

docs/source/examples.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Howto
88
=====
99

1010
.. toctree::
11+
notebooks/api_quickstart.ipynb
1112
notebooks/sampler-stats.ipynb
1213
notebooks/Diagnosing_biased_Inference_with_Divergences.ipynb
1314
notebooks/posterior_predictive.ipynb

docs/source/getting_started.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Getting started
66

77
.. toctree::
88
notebooks/getting_started.ipynb
9+
notebooks/api_quickstart.ipynb

docs/source/notebooks/GLM-robust-with-outlier-detection.ipynb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,30 @@
665665
" lines={k: v['mean'] for k, v in pm.df_summary(traces_signoise[-1000:]).iterrows()})"
666666
]
667667
},
668+
{
669+
"cell_type": "code",
670+
"execution_count": 61,
671+
"metadata": {
672+
"collapsed": false
673+
},
674+
"outputs": [
675+
{
676+
"name": "stdout",
677+
"output_type": "stream",
678+
"text": [
679+
"2\n",
680+
"1\n"
681+
]
682+
}
683+
],
684+
"source": [
685+
"def f(x, y):\n",
686+
" print(x)\n",
687+
" print(y)\n",
688+
" \n",
689+
"f(y=1, x=2)"
690+
]
691+
},
668692
{
669693
"cell_type": "markdown",
670694
"metadata": {},

0 commit comments

Comments
 (0)