Skip to content

Commit 88a0f43

Browse files
twieckiOriolAbril
andauthored
Bring back learn page. (#5833)
* Bring back learning page. * Remove no-sidebar. * Updates to user guide. * Remove learn.md. * Add link to PyMC Labs. * Link to correct image. * Improve cosulting page. Rename to learn. * Change cards to use Oriol's proposed format. * fix sphinx build * add newline at end of file * ensure img kwarg is in the next line of directive definition Co-authored-by: Oriol Abril-Pla <[email protected]>
1 parent de9db67 commit 88a0f43

File tree

8 files changed

+97
-137
lines changed

8 files changed

+97
-137
lines changed

docs/source/api.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _api:
22

3-
*************
4-
API Reference
5-
*************
3+
***
4+
API
5+
***
66

77
.. toctree::
88
:maxdepth: 1

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
myst_heading_anchors = None
155155

156156
rediraffe_redirects = {
157-
"index.md": "learning.md",
157+
"index.md": "learn.md",
158158
}
159159
# The reST default role (used for this markup: `text`) to use for all
160160
# documents.
@@ -309,7 +309,9 @@ def setup(app):
309309
# html_use_smartypants = True
310310

311311
# Custom sidebar templates, maps document names to template names.
312-
html_sidebars = {"**": ["sidebar-nav-bs.html"]}
312+
html_sidebars = {
313+
"**": ["sidebar-nav-bs.html"],
314+
}
313315

314316
# Additional templates that should be rendered to pages, maps page names to
315317
# template names.

docs/source/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sd_hide_title: true
99

1010
Home <https://www.pymc.io/welcome.html>
1111
Examples <https://www.pymc.io/projects/examples/en/latest/gallery.html>
12-
learning
12+
Learn <learn>
1313
api
1414
Community <https://www.pymc.io/community/index.html>
1515
contributing/index

docs/source/learn.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
(learn)=
2+
# Learn PyMC & Bayesian modeling
3+
4+
:::{toctree}
5+
:maxdepth: 1
6+
installation
7+
learn/core_notebooks/index
8+
learn/books
9+
learn/videos_and_podcasts
10+
learn/consulting
11+
glossary
12+
:::
13+
14+
## At a glance
15+
### Beginner
16+
- Book: [Bayesian Methods for Hackers](https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers)
17+
- Book: [Bayesian Analysis with Python](https://www.packtpub.com/big-data-and-business-intelligence/bayesian-analysis-python-second-edition)
18+
19+
### Intermediate
20+
- {ref}`pymc_overview` shows PyMC 4.0 code in action
21+
- Example notebooks: {ref}`nb:index`
22+
- {ref}`GLM_linear`
23+
- {ref}`posterior_predictive`
24+
- Comparing models: {ref}`model_comparison`
25+
- Shapes and dimensionality {ref}`dimensionality`
26+
- {ref}`videos_and_podcasts`
27+
- Book: [Bayesian Modeling and Computation in Python](https://bayesiancomputationbook.com/welcome.html)
28+
29+
### Advanced
30+
- {octicon}`plug;1em;sd-text-info` Experimental and cutting edge functionality: {doc}`pmx:index` library
31+
- {octicon}`gear;1em;sd-text-info` PyMC internals guides (To be outlined and referenced here once [pymc#5538](https://github.com/pymc-devs/pymc/issues/5538)
32+
is addressed)

docs/source/learn/books.md

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
(books)=
22
# Books
3+
:::::{container} full-width
4+
::::{grid} 1 2 2 3
5+
:gutter: 3
36

4-
## Bayesian Methods for Hackers
5-
7+
:::{grid-item-card} Bayesian Methods for Hackers
8+
:img-top: https://camo.githubusercontent.com/4a0aca82ca82efab71747d00db30f3a68de98e82/687474703a2f2f692e696d6775722e636f6d2f36444b596250622e706e673f31
69
By Cameron Davidson-Pilon
710

811
The "hacker" in the title means learn-as-you-code. This hands-on introduction teaches intuitive definitions of the Bayesian approach to statistics, worklflow and decision-making by applying them using PyMC.
@@ -11,30 +14,37 @@ The "hacker" in the title means learn-as-you-code. This hands-on introduction t
1114

1215
[Project homepage](http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/)
1316

14-
## Bayesian Analysis with Python
17+
:::
18+
19+
:::{grid-item-card} Bayesian Analysis with Python
20+
:img-top: https://raw.githubusercontent.com/aloctavodia/BAP/master/Cover.png
1521

1622
By Osvaldo Martin
1723

24+
1825
A great introductory book written by a maintainer of PyMC. It provides a hands-on introduction to the main concepts of Bayesian statistics using synthetic and real data sets. Mastering the concepts in this book is a great foundation to pursue more advanced knowledge.
1926

2027
[Book website](https://www.packtpub.com/big-data-and-business-intelligence/bayesian-analysis-python-second-edition)
2128

2229
[Code and errata in PyMC 3.x](https://github.com/aloctavodia/BAP)
30+
:::
2331

24-
## Doing Bayesian Data Analysis
32+
:::{grid-item-card} Doing Bayesian Data Analysis
33+
:img-top: https://jkkweb.sitehost.iu.edu/DoingBayesianDataAnalysis/DBDA2Ecover.png
2534

2635
By John K. Kruschke
2736

28-
Principled introduction to Bayesian data analysis, with practical exercises. The book's original examples are coded in R, but notebooks with a PyMC port of the code are available through the links below.
2937

38+
Principled introduction to Bayesian data analysis, with practical exercises. The book's original examples are coded in R, but notebooks with a PyMC port of the code are available through the links below.
3039

3140
[Book website](https://sites.google.com/site/doingbayesiandataanalysis/home)
3241

33-
[PyMC 3.x port of the first edition's code](https://github.com/aloctavodia/Doing_bayesian_data_analysis)
34-
3542
[PyMC 3.x port of the second edition's code](https://github.com/JWarmenhoven/DBDA-python)
3643

37-
## Statistical Rethinking
44+
:::
45+
46+
:::{grid-item-card} Statistical Rethinking
47+
:img-top: http://xcelab.net/rm/wp-content/uploads/2012/01/9781482253443-191x300.jpg
3848

3949
By Richard McElreath
4050

@@ -44,16 +54,21 @@ A Bayesian Course with Examples in R and Stan.
4454

4555
[PyMC 3.x port of the code](https://github.com/pymc-devs/resources/tree/master/Rethinking)
4656

47-
## Bayesian Modeling and Computation in Python
57+
:::
58+
59+
:::{grid-item-card} Bayesian Modeling and Computation in Python
60+
:img-top: https://bayesiancomputationbook.com/_images/Cover.jpg
4861

4962
By Osvaldo Martin, Ravin Kumar and Junpeng Lao
5063

51-
Bayesian Modeling and Computation in Python aims to help beginner Bayesian practitioners to become intermediate modelers. It uses a hands on approach with PyMC and ArviZ focusing on the practice of applied statistics with references to the underlying mathematical theory.
64+
Hands on approach with PyMC and ArviZ focusing on the practice of applied statistics.
5265

53-
[Book website](https://bayesiancomputationbook.com/welcome.html)
54-
(the book website contains the whole book, code examples, and notebook in online format)
66+
[Website + code](https://bayesiancomputationbook.com/welcome.html)
5567

56-
## Bayesian Cognitive Modeling: A Practical Course
68+
:::
69+
70+
:::{grid-item-card} Bayesian Cognitive Modeling: A Practical Course
71+
:img-top: https://images-na.ssl-images-amazon.com/images/I/51K33XI2I8L._SX330_BO1,204,203,200_.jpg
5772

5873
By Michael Lee and Eric-Jan Wagenmakers
5974

@@ -62,8 +77,10 @@ Focused on using Bayesian statistics in cognitive modeling.
6277
[Book website](https://bayesmodels.com/)
6378

6479
[PyMC 3.x implementations](https://github.com/pymc-devs/resources/tree/master/BCM)
80+
:::
6581

66-
## Bayesian Data Analysis
82+
:::{grid-item-card} Bayesian Data Analysis
83+
:img-top: http://www.stat.columbia.edu/~gelman/book/bda_cover.png
6784

6885
By Andrew Gelman, John Carlin, Hal Stern, David Dunson, Aki Vehtari, and Donald Rubin
6986

@@ -72,3 +89,6 @@ A comprehensive, standard, and wonderful textbook on Bayesian methods.
7289
[Book website](https://www.stat.columbia.edu/~gelman/book/)
7390

7491
[Examples and exercises implemented in PyMC 3.x](https://github.com/pymc-devs/resources/tree/master/BDA3)
92+
93+
::::
94+
:::::

docs/source/learn/consulting.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(consulting)=
2+
# Consulting
3+
4+
<center><a href="https://www.pymc-labs.io/"><img src="https://github.com/pymc-labs/brand/blob/main/logos/4-pymc-labs-transp-black.png?raw=true" class="center" width="75%"></a></center>
5+
<br>
6+
7+
If you need professional help with your PyMC model, [PyMC Labs](https://www.pymc-labs.io) is a Bayesian consultancy consisting of [members of the PyMC core development team](https://www.pymc-labs.io/team/). Work we typically do includes:
8+
* Model speed-ups (reparameterizations, JAX, [GPU sampling](https://www.pymc-labs.io/blog-posts/pymc-stan-benchmark/))
9+
* Improving models (adding hierarchy, time-series structure etc)
10+
* Building new models to solve applied business problems
11+
* [Bayesian Media Mix Models](https://www.pymc-labs.io/blog-posts/bayesian-media-mix-modeling-for-marketing-optimization/) for marketing attribution
12+
13+
Interested? Send us an email at [[email protected]](mailto:[email protected]).

docs/source/learn/videos_and_podcasts.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
Actively curated [YouTube playlist](https://www.youtube.com/playlist?list=PL1Ma_1DBbE82OVW8Fz_6Ts1oOeyOAiovy) of PyMC talks
1212
:::
1313

14+
:::{card} PyMC Labs Youtube channel
15+
16+
[See all videos here](https://www.youtube.com/c/PyMCLabs/videos)
17+
:::
18+
19+
:::{card} PyMCon 2020 talks
20+
21+
[See all videos here](https://www.youtube.com/playlist?list=PLD1x-BW9UdeG68AQj6rDRfGiFFrpZ3cgu)
22+
:::
23+
1424
:::{card} Learning Bayesian Statistics podcast
1525

1626
[See all videos here](https://www.youtube.com/channel/UCAwVseuhVrpJFfik_cMHrhQ/videos)

docs/source/learning.md

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)