Skip to content

Commit

Permalink
decentralize environments (pymc-devs#79)
Browse files Browse the repository at this point in the history
* decentralize environments

* decentralize environments

* Fix typo per comment

Co-authored-by: Ravin Kumar <ravinsdrive@gmail.com>
  • Loading branch information
aloctavodia and canyon289 authored Apr 13, 2020
1 parent 8f1677c commit 416a42a
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 4 deletions.
1 change: 1 addition & 0 deletions BCM/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dependencies:
- mkl-service
- seaborn
- statsmodels
- pip
- pip:
- "git+git://github.com/pymc-devs/pymc3.git@master"
1 change: 1 addition & 0 deletions BDA3/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ channels:
dependencies:
- jupyter
- seaborn
- pip
- pip:
- "git+git://github.com/pymc-devs/pymc3.git@master"
30 changes: 30 additions & 0 deletions BSM/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Bayesian Statistical Methods Python and PyMC3

In this repository we port [the book's original code](https://bayessm.wordpress.ncsu.edu) to Python and PyMC3. We attempt to reproduce the examples as faithfully as possible while expressing them in a _Pythonic_ and _PyMC3onic_ way.

## Display notebooks
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/pymc-devs/resources/master?filepath=BSM)
[<img src="http://nbviewer.jupyter.org/static/img/nav_logo.svg" width=120>](http://nbviewer.jupyter.org/github/pymc-devs/resources/blob/master/BSM)

## Contributing

All contributions are welcome!

Feel free to send a PR to fix errors, improve the code, or make comments that could help users of this repository and readers of the book.


## Installing the dependencies

To install the dependencies to run these notebooks, you can use [Anaconda](https://www.continuum.io/downloads). Once you have installed Anaconda, run:

conda env create -f environment.yml

to install all the dependencies into an isolated environment.

Activate the environment by running:

source activate bsm-pymc3

---

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br /><span>Statistical Rethinking with Python and PyMC3</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/aloctavodia/Statistical-Rethinking-with-Python-and-PyMC3/graphs/contributors" property="cc:attributionName" rel="cc:attributionURL">All Contributors</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
7 changes: 4 additions & 3 deletions environment.yml → BSM/environment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: pymc3_resources
name: bsm-pymc3
channels:
- defaults
dependencies:
- jupyter
- seaborn
- statsmodels
- mkl-service
- pip
- pip:
- "git+git://github.com/arviz-devs/arviz.git@master"
- "git+git://github.com/pymc-devs/pymc3.git@master"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PyMC3 Resources
PyMC3 educational resources, including PyMC3 port of books (original models in STAN/BUGS/JAGS etc,.), PyMC3 talk slides, case studies, and other resources.
PyMC3 educational resources, including the PyMC3 port of the following books (original models in STAN/BUGS/JAGS etc,.):

- [PyMC3 port of the book "Statistical Rethinking" by Richard McElreath (first edition)](https://github.com/pymc-devs/resources/tree/master/Rethinking)
- [PyMC3 port of the book "Statistical Rethinking" by Richard McElreath (second edition)](https://github.com/pymc-devs/resources/tree/master/Rethinking_2)
Expand Down
1 change: 1 addition & 0 deletions Rethinking/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- mkl-service
- seaborn
- statsmodels
- pip
- pip:
- "git+git://github.com/arviz-devs/arviz.git@master"
- "git+git://github.com/pymc-devs/pymc3.git@master"
34 changes: 34 additions & 0 deletions Rethinking_2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Statistical Rethinking (second edition) with Python and PyMC3

[Statistical Rethinking](http://xcelab.net/rm/statistical-rethinking/) is an incredible introductory book to Bayesian Statistics. It follows a [_Jaynesian_](https://en.wikipedia.org/wiki/Edwin_Thompson_Jaynes) and practical approach with very good examples and clear explanations.

In this repository we port [the book's original code in R and Stan](https://github.com/rmcelreath/rethinking) to Python and PyMC3. We attempt to reproduce the examples as faithfully as possible while expressing them in a _Pythonic_ and _PyMC3onic_ way.

## Display notebooks
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/pymc-devs/resources/master?filepath=Rethinking_2)
[<img src="http://nbviewer.jupyter.org/static/img/nav_logo.svg" width=120>](http://nbviewer.jupyter.org/github/pymc-devs/resources/blob/master/Rethinking_2)


## Contributing

All contributions are welcome!

Feel free to send PR to fix errors, improve the code, or make comments that could help users of this repository and readers of the book.

You can also join the discussion on [Gitter](https://gitter.im/Statistical-Rethinking-with-Python-and-PyMC3/Lobby).

## Installing the dependencies

To install the dependencies to run these notebooks, you can use [Anaconda](https://www.continuum.io/downloads). Once you have installed Anaconda, run:

conda env create -f environment.yml

to install all the dependencies into an isolated environment.

Activate the environment by running:

source activate stat-rethink2-pymc3

---

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br /><span>Statistical Rethinking with Python and PyMC3</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/aloctavodia/Statistical-Rethinking-with-Python-and-PyMC3/graphs/contributors" property="cc:attributionName" rel="cc:attributionURL">All Contributors</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
11 changes: 11 additions & 0 deletions Rethinking_2/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: stat-rethink2-pymc3
channels:
- defaults
dependencies:
- jupyter
- mkl-service
- pip
- pip:
- watermark
- "git+git://github.com/arviz-devs/arviz.git@master"
- "git+git://github.com/pymc-devs/pymc3.git@master"

0 comments on commit 416a42a

Please sign in to comment.