Skip to content

Commit 9476f5a

Browse files
ColCarrolljunpenglao
authored andcommitted
Add learn page (#3261)
1 parent 8037d82 commit 9476f5a

File tree

4 files changed

+260
-24
lines changed

4 files changed

+260
-24
lines changed

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
("Quickstart", "intro"),
147147
("API", "api"),
148148
("Examples", "examples"),
149+
("Learn", "learn"),
149150
],
150151
# "fixed_sidebar": "false",
151152
# "description": "Probabilistic Programming in Python: Bayesian Modeling and Probabilistic Machine Learning with Theano"

docs/source/index.rst

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,20 @@
1616
Gaussian processes to fit a regression model.</p>
1717
</div>
1818
<div class="eight wide right floated column">
19-
20-
::
21-
19+
<pre><code class="python">
2220
X, y = linear_training_data()
2321

2422
with pm.Model() as linear_model:
2523
weights = pm.Normal('weights', mu=0, sd=1)
2624
noise = pm.Gamma('noise', alpha=2, beta=1)
2725
y_observed = pm.Normal('y_observed',
28-
mu=X.dot(weights),
29-
sd=noise,
30-
observed=y)
26+
mu=X.dot(weights),
27+
sd=noise,
28+
observed=y)
3129

3230
prior = pm.sample_prior_predictive()
3331
posterior = pm.sample()
34-
posterior_pred = pm.sample_posterior_predictive(posterior)
35-
36-
.. raw:: html
37-
32+
posterior_pred = pm.sample_posterior_predictive(posterior)</code></pre>
3833
</div>
3934
</div>
4035
</div>
@@ -74,18 +69,15 @@
7469
</div>
7570

7671
<div class="ui container">
77-
<h2 class="ui dividing header">etc.</h2>
78-
<div class="ui text container">
79-
<h3 class="ui dividing header">License</h3>
80-
<p>PyMC3 is licensed <a href="https://github.com/pymc-devs/pymc3/blob/master/LICENSE">under the Apache License, V2.</a></p>
81-
</div>
72+
<h2 class="ui dividing header">Licence</h2>
73+
<p>PyMC3 is licensed <a href="https://github.com/pymc-devs/pymc3/blob/master/LICENSE">under the Apache License, V2.</a></p>
74+
</div>
8275

83-
<div class="ui text container">
84-
<h3 class="ui dividing header">Citing PyMC3</h3>
85-
<p>Salvatier J., Wiecki T.V., Fonnesbeck C. (2016) Probabilistic programming in Python using PyMC3. PeerJ
86-
Computer Science 2:e55 <a href="https://doi.org/10.7717/peerj-cs.55">DOI: 10.7717/peerj-cs.55</a>.</p>
87-
<p>See <a href="https://scholar.google.de/scholar?oi=bibs&hl=en&authuser=1&cites=6936955228135731011">Google Scholar</a> for a continuously updated list of papers citing PyMC3.</p>
88-
</div>
76+
<div class="ui container">
77+
<h2 class="ui dividing header">Citing PyMC3</h2>
78+
<p>Salvatier J., Wiecki T.V., Fonnesbeck C. (2016) Probabilistic programming in Python using PyMC3. PeerJ
79+
Computer Science 2:e55 <a href="https://doi.org/10.7717/peerj-cs.55">DOI: 10.7717/peerj-cs.55</a>.</p>
80+
<p>See <a href="https://scholar.google.de/scholar?oi=bibs&hl=en&authuser=1&cites=6936955228135731011">Google Scholar</a> for a continuously updated list of papers citing PyMC3.</p>
8981
</div>
9082

9183
<div class="ui segment">

docs/source/learn.rst

Lines changed: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,242 @@
1+
.. title:: Learn
2+
3+
.. raw:: html
4+
5+
<h1 class="ui header">Learn Bayesian statistics</h1>
6+
7+
<h2 class="ui header">...with others!</h2>
8+
<div class="ui celled list">
9+
10+
<div class="item">
11+
<i class="large discourse middle aligned icon"></i>
12+
<div class="content">
13+
<a href="https://discourse.pymc.io/" class="header">Discourse Forum</a>
14+
<div class="description">
15+
The PyMC3 discourse forum is a great place to ask general questions about Bayesian statistics, or more specific ones about PyMC3 usage.
16+
</div>
17+
</div>
18+
</div>
19+
20+
<div class="item">
21+
<i class="large python middle aligned icon"></i>
22+
<div class="content">
23+
<div class="header">Conferences</div>
24+
<div class="description">
25+
PyMC3 talks have been given at a number of conferences, including <a href="https://us.pycon.org/">PyCon</a>, <a href="https://pydata.org/events/">PyData</a>, and <a href="https://odsc.com/">ODSC</a> events.
26+
</div>
27+
</div>
28+
</div>
29+
30+
<div class="item">
31+
<i class="large meetup middle aligned icon"></i>
32+
<div class="content">
33+
<a href="https://www.meetup.com/" class="header">Meetup Groups</a>
34+
<div class="description">
35+
Many areas have an local Bayesian, PyData, or Stan meetup.
36+
</div>
37+
</div>
38+
</div>
39+
40+
</div>
41+
42+
<h2 class="ui header">...with a book!</h2>
43+
<div class="ui link four stackable cards">
44+
45+
<div class="card">
46+
<div class="image">
47+
<img src="https://camo.githubusercontent.com/4a0aca82ca82efab71747d00db30f3a68de98e82/687474703a2f2f692e696d6775722e636f6d2f36444b596250622e706e673f31">
48+
</div>
49+
<div class="content">
50+
<div class="header">Bayesian Methods for Hackers</div>
51+
<div class="meta">Cameron Davidson-Pilon</div>
52+
<div class="description">
53+
Fantastic book with many applied code examples.
54+
</div>
55+
</div>
56+
<table class="ui table">
57+
<tbody>
58+
<tr>
59+
<td>
60+
<a href="https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers">
61+
<i class="linkify icon"></i> Github Repo
62+
</a>
63+
</td>
64+
</tr>
65+
<tr>
66+
<td>
67+
<a href="http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/">
68+
<i class="linkify icon"></i> Project homepage
69+
</a>
70+
</td>
71+
</tr>
72+
</tbody>
73+
</table>
74+
</div>
75+
76+
<div class="card">
77+
<div class="image">
78+
<img src="https://camo.githubusercontent.com/dbb5f926b3bfe7e2196044462ce2411ee3a001ee/68747470733a2f2f39623865303033322d612d36326362336131612d732d73697465732e676f6f676c6567726f7570732e636f6d2f736974652f646f696e67626179657369616e64617461616e616c797369732f776861742d732d6e65772d696e2d326e642d65642f436f7665724442444132452d46726f6e744f6e6c792d363030776964652e706e67">
79+
</div>
80+
<div class="content">
81+
<div class="header">Doing Bayesian Data Analysis</div>
82+
<div class="meta">John Kruschke</div>
83+
<div class="description">
84+
Principled introduction to Bayesian data analysis.
85+
</div>
86+
</div>
87+
<table class="ui table">
88+
<tbody>
89+
<tr>
90+
<td>
91+
<a href="http://doingbayesiandataanalysis.blogspot.com/">
92+
<i class="linkify icon"></i> Book website
93+
</a>
94+
</td>
95+
</tr>
96+
<tr>
97+
<td>
98+
<a href="https://github.com/aloctavodia/Doing_bayesian_data_analysis">
99+
<i class="linkify icon"></i> PyMC3 notebooks for <em>first edition</em>
100+
</a>
101+
</td>
102+
</tr>
103+
<tr>
104+
<td>
105+
<a href="https://github.com/JWarmenhoven/DBDA-python">
106+
<i class="linkify icon"></i> PyMC3 notebooks for <em>second edition</em>
107+
</a>
108+
</td>
109+
</tr>
110+
</tbody>
111+
</table>
112+
</div>
113+
114+
<div class="card">
115+
<div class="image">
116+
<img src="http://xcelab.net/rm/wp-content/uploads/2012/01/9781482253443-191x300.jpg">
117+
</div>
118+
<div class="content">
119+
<div class="header">Statistical Rethinking</div>
120+
<div class="meta">Richard McElreath</div>
121+
<div class="description">
122+
A Bayesian Course with Examples in R and Stan.
123+
</div>
124+
</div>
125+
<table class="ui table">
126+
<tbody>
127+
<tr>
128+
<td>
129+
<a href="http://xcelab.net/rm/statistical-rethinking/">
130+
<i class="linkify icon"></i> Book website
131+
</a>
132+
</td>
133+
</tr>
134+
<tr>
135+
<td>
136+
<a href="https://github.com/pymc-devs/resources/tree/master/Rethinking">
137+
<i class="linkify icon"></i> PyMC3 port of the code
138+
</a>
139+
</td>
140+
</tr>
141+
</tbody>
142+
</table>
143+
</div>
144+
145+
<div class="card">
146+
<div class="image">
147+
<img src="https://images-na.ssl-images-amazon.com/images/I/51K33XI2I8L._SX330_BO1,204,203,200_.jpg">
148+
</div>
149+
<div class="content">
150+
<div class="header">Bayesian Cognitive Modeling: A Practical Course</div>
151+
<div class="meta">Michael Lee and Eric-Jan Wagenmakers</div>
152+
<div class="description">
153+
Focused on using Bayesian statistics in cognitive modeling.
154+
</div>
155+
</div>
156+
<table class="ui table">
157+
<tbody>
158+
<tr>
159+
<td>
160+
<a href="https://bayesmodels.com/">
161+
<i class="linkify icon"></i> Book website
162+
</a>
163+
</td>
164+
</tr>
165+
<tr>
166+
<td>
167+
<a href="https://github.com/pymc-devs/resources/tree/master/BCM">
168+
<i class="linkify icon"></i> PyMC3 implementations
169+
</a>
170+
</td>
171+
</tr>
172+
</tbody>
173+
</table>
174+
</div>
175+
176+
<div class="card">
177+
<div class="image">
178+
<img src="https://dz13w8afd47il.cloudfront.net/sites/default/files/imagecache/ppv4_main_book_cover/3804OS_4958_Bayesian%20Analysis%20with%20Python.png">
179+
</div>
180+
<div class="content">
181+
<div class="header">Bayesian Analysis with Python</div>
182+
<div class="meta">Osvaldo Martin</div>
183+
<div class="description">
184+
A great introductory book written by a maintainer of PyMC3.
185+
</div>
186+
</div>
187+
<table class="ui table">
188+
<tbody>
189+
<tr>
190+
<td>
191+
<a href="https://www.packtpub.com/big-data-and-business-intelligence/bayesian-analysis-python">
192+
<i class="linkify icon"></i> Book website
193+
</a>
194+
</td>
195+
</tr>
196+
<tr>
197+
<td>
198+
<a href="https://github.com/aloctavodia/BAP">
199+
<i class="linkify icon"></i> Code and errata in PyMC3
200+
</a>
201+
</td>
202+
</tr>
203+
</tbody>
204+
</table>
205+
</div>
206+
207+
<div class="card">
208+
<div class="image">
209+
<img src="http://www.stat.columbia.edu/~gelman/book/bda_cover.png">
210+
</div>
211+
<div class="content">
212+
<div class="header">Bayesian Data Analysis</div>
213+
<div class="meta">Andrew Gelman, John Carlin, Hal Stern, David Dunson, Aki Vehtari, and Donald Rubin</div>
214+
<div class="description">
215+
A comprehensive, standard, and wonderful textbook on Bayesian methods.
216+
</div>
217+
</div>
218+
<table class="ui table">
219+
<tbody>
220+
<tr>
221+
<td>
222+
<a href="https://www.stat.columbia.edu/~gelman/book/">
223+
<i class="linkify icon"></i> Book website
224+
</a>
225+
</td>
226+
</tr>
227+
<tr>
228+
<td>
229+
<a href="https://github.com/pymc-devs/resources/tree/master/BDA3">
230+
<i class="linkify icon"></i> Examples and exercises implemented in PyMC3
231+
</a>
232+
</td>
233+
</tr>
234+
</tbody>
235+
</table>
236+
</div>
237+
238+
</div>
239+
240+
<h2 class="ui header">...with a video!</h2>
241+
242+
<p> There is an <a href="https://www.youtube.com/playlist?list=PL1Ma_1DBbE82OVW8Fz_6Ts1oOeyOAiovy">actively curated playlist of PyMC3 talks</a> on YouTube.

docs/source/semantic_sphinx/layout.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525

2626
<div class="ui container">
2727
<div class="ui large secondary pointing menu">
28-
{% if theme_navbar_links %}
29-
{%- for link in theme_navbar_links %}
30-
<a href="{{ pathto(*link[1:]) }}" class="item">{{ link[0] }}</a>
28+
<img class="ui bottom aligned tiny image item" src="https://cdn.rawgit.com/pymc-devs/pymc3/master/docs/logos/svg/PyMC3_banner.svg" />
29+
{% if
30+
theme_navbar_links %} {%- for link in theme_navbar_links %} <a href="{{ pathto(*link[1:]) }}" class="item">{{
31+
link[0] }}</a>
3132
{%- endfor %}
3233
{% endif %}
3334
<div class="right menu">

0 commit comments

Comments
 (0)