Skip to content

Commit 87a9f6e

Browse files
Extend docs on how to support PyMC (#4040)
* add pymc3 for enterprise section to README * use badges for links * modify badge style to match other badges in readme * convert history page into about page and extend * fix numfocus logo * add suggestions from review * Update docs/source/about.rst Co-authored-by: Alexandre ANDORRA <[email protected]> Co-authored-by: Alexandre ANDORRA <[email protected]>
1 parent 92ff9e9 commit 87a9f6e

File tree

5 files changed

+154
-15
lines changed

5 files changed

+154
-15
lines changed

README.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Software using PyMC3
158158
- `sampled <https://github.com/ColCarroll/sampled>`__: Decorator for PyMC3 models.
159159
- `NiPyMC <https://github.com/PsychoinformaticsLab/nipymc>`__: Bayesian mixed-effects modeling of fMRI data in Python.
160160
- `beat <https://github.com/hvasbath/beat>`__: Bayesian Earthquake Analysis Tool.
161+
- `pymc-learn <https://github.com/pymc-learn/pymc-learn>`__: Custom PyMC models built on top of pymc3_models/scikit-learn API
161162

162163
Please contact us if your software is not listed here.
163164

@@ -177,6 +178,18 @@ Support
177178

178179
PyMC3 is a non-profit project under NumFOCUS umbrella. If you want to support PyMC3 financially, you can donate `here <https://numfocus.salsalabs.org/donate-to-pymc3/index.html>`__.
179180

181+
PyMC for enterprise
182+
===================
183+
`PyMC is now available as part of the Tidelift Subscription!`
184+
185+
Tidelift is working with PyMC and the maintainers of thousands of other open source
186+
projects to deliver commercial support and maintenance for the open source dependencies
187+
you use to build your applications. Save time, reduce risk, and improve code health,
188+
while contributing financially to PyMC -- making it even more robust, reliable and,
189+
let's face it, amazing!
190+
191+
|tidelift_learn| |tidelift_demo|
192+
180193
Sponsors
181194
========
182195

@@ -202,3 +215,9 @@ Sponsors
202215
:target: http://www.numfocus.org/
203216
.. |ODSC| image:: https://raw.githubusercontent.com/pymc-devs/pymc3/master/docs/odsc_logo.png
204217
:target: https://odsc.com
218+
.. |tidelift| image:: https://img.shields.io/badge/-lifted!-2dd160.svg?colorA=58595b&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAOCAYAAADJ7fe0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAVhJREFUKBV1kj0vBFEUhmd2sdZHh2IlGhKFQuOviEYiNlFodCqtUqPxA%2FwCjUTnDygkGoVERFQaZFlE9nreO%2BdM5u5wkifvuee892Pu3CyEcA0DeIc%2B9IwftJsR6Cko3uCjguZdjuBZhhwmYDjGrOC96WED41UtsgEdGEAPlmAfpuAbFF%2BFZLfoMfRBGzThDtLgePPwBIpdddGzOArhPHUXowbNptE2www6a%2Fm96Y3pHN7oQ1s%2B13pxt1ENaKzBFWyWzaJ%2BRO0C9Jny6VPSoKjLVbMDC5bn5OPuJF%2BBSe95PVEMuugY5AegS9fCh7BedP45hRnj8TC34QQUe9bTZyh2KgvFk2vc8GIlXyTfsvqr6bPpNgv52ynnlomZJNpB70Xhl%2Bf6Sa02p1bApEfnETwxVa%2Faj%2BW%2FFtHltmxS%2FO3krvpTtTnVgu%2F6gvHRFvG78Ef3kOe5PimJXycY74blT5R%2BAAAAAElFTkSuQmCC
219+
:target: https://tidelift.com/subscription/pkg/pypi-pymc3?utm_source=pypi-pymc3&utm_medium=referral&utm_campaign=enterprise
220+
.. |tidelift_learn| image:: https://img.shields.io/badge/-learn%20more-2dd160.svg?color=orange&labelColor=58595b&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAOCAYAAADJ7fe0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAVhJREFUKBV1kj0vBFEUhmd2sdZHh2IlGhKFQuOviEYiNlFodCqtUqPxA%2FwCjUTnDygkGoVERFQaZFlE9nreO%2BdM5u5wkifvuee892Pu3CyEcA0DeIc%2B9IwftJsR6Cko3uCjguZdjuBZhhwmYDjGrOC96WED41UtsgEdGEAPlmAfpuAbFF%2BFZLfoMfRBGzThDtLgePPwBIpdddGzOArhPHUXowbNptE2www6a%2Fm96Y3pHN7oQ1s%2B13pxt1ENaKzBFWyWzaJ%2BRO0C9Jny6VPSoKjLVbMDC5bn5OPuJF%2BBSe95PVEMuugY5AegS9fCh7BedP45hRnj8TC34QQUe9bTZyh2KgvFk2vc8GIlXyTfsvqr6bPpNgv52ynnlomZJNpB70Xhl%2Bf6Sa02p1bApEfnETwxVa%2Faj%2BW%2FFtHltmxS%2FO3krvpTtTnVgu%2F6gvHRFvG78Ef3kOe5PimJXycY74blT5R%2BAAAAAElFTkSuQmCC
221+
:target: https://tidelift.com/subscription/pkg/pypi-pymc3?utm_source=pypi-pymc3&utm_medium=referral&utm_campaign=enterprise
222+
.. |tidelift_demo| image:: https://img.shields.io/badge/-request%20a%20demo-2dd160.svg?color=orange&labelColor=58595b&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAOCAYAAADJ7fe0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAVhJREFUKBV1kj0vBFEUhmd2sdZHh2IlGhKFQuOviEYiNlFodCqtUqPxA%2FwCjUTnDygkGoVERFQaZFlE9nreO%2BdM5u5wkifvuee892Pu3CyEcA0DeIc%2B9IwftJsR6Cko3uCjguZdjuBZhhwmYDjGrOC96WED41UtsgEdGEAPlmAfpuAbFF%2BFZLfoMfRBGzThDtLgePPwBIpdddGzOArhPHUXowbNptE2www6a%2Fm96Y3pHN7oQ1s%2B13pxt1ENaKzBFWyWzaJ%2BRO0C9Jny6VPSoKjLVbMDC5bn5OPuJF%2BBSe95PVEMuugY5AegS9fCh7BedP45hRnj8TC34QQUe9bTZyh2KgvFk2vc8GIlXyTfsvqr6bPpNgv52ynnlomZJNpB70Xhl%2Bf6Sa02p1bApEfnETwxVa%2Faj%2BW%2FFtHltmxS%2FO3krvpTtTnVgu%2F6gvHRFvG78Ef3kOe5PimJXycY74blT5R%2BAAAAAElFTkSuQmCC
223+
:target: https://tidelift.com/subscription/request-a-demo?utm_source=pypi-pymc3&utm_medium=referral&utm_campaign=enterprise

docs/source/history.rst renamed to docs/source/about.rst

Lines changed: 120 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
.. _intro:
1+
.. _about:
22

3-
************
4-
Introduction
5-
************
3+
***********
4+
About PyMC3
5+
***********
66

7+
.. _intro:
78

89
Purpose
910
=======
@@ -86,14 +87,116 @@ Python 3 compatibility, improved summary plots, and some important bug fixes.
8687

8788
In 2011, John Salvatier began thinking about implementing gradient-based MCMC samplers, and developed the ``mcex`` package to experiment with his ideas. The following year, John was invited by the team to re-engineer PyMC to accomodate Hamiltonian Monte Carlo sampling. This led to the adoption of Theano as the computational back end, and marked the beginning of PyMC3's development. The first alpha version of PyMC3 was released in June 2015. Over the following 2 years, the core development team grew to 12 members, and the first release, PyMC3 3.0, was launched in January 2017.
8889

90+
.. _support:
91+
92+
************
93+
Support PyMC
94+
************
95+
96+
PyMC3 is a non-profit project under NumFOCUS umbrella. If you want to support PyMC3
97+
financially, consider donating to the project.
98+
99+
.. raw:: html
100+
101+
<style>.centered {text-align: center;}</style>
102+
<div class="centered"><a href="https://numfocus.org/donate-to-pymc3">
103+
<div class="ui huge primary button">Donate to PyMC3</div>
104+
</a></div>
105+
106+
Citing PyMC3
107+
============
108+
If you use PyMC3 in your reseach please cite: Salvatier J., Wiecki T.V., Fonnesbeck C. (2016) Probabilistic programming in Python using PyMC3. PeerJ Computer Science 2:e55 [DOI: 10.7717/peerj-cs.55](https://doi.org/10.7717/peerj-cs.55).
109+
110+
The BibTeX entry is:
111+
112+
.. code-block:: none
113+
114+
@article{pymc3,
115+
title={Probabilistic programming in Python using PyMC3},
116+
author={Salvatier, John and Wiecki, Thomas V and Fonnesbeck, Christopher},
117+
journal={PeerJ Computer Science},
118+
volume={2},
119+
pages={e55},
120+
year={2016},
121+
publisher={PeerJ Inc.}
122+
}
123+
124+
125+
PyMC for enterprise
126+
===================
127+
`PyMC is now available as part of the Tidelift Subscription!`
128+
129+
Tidelift is working with PyMC and the maintainers of thousands of other open source
130+
projects to deliver commercial support and maintenance for the open source dependencies
131+
you use to build your applications. Save time, reduce risk, and improve code health,
132+
while contributing financially to PyMC -- making it even more robust, reliable and,
133+
let's face it, amazing!
134+
135+
.. raw:: html
136+
137+
<style>.centered {text-align: center;}</style>
138+
<p><div class="centered">
139+
<a href="https://tidelift.com/subscription/pkg/pypi-pymc3?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise">
140+
<button class="ui large orange button" color="orange">Learn more</button>
141+
</a>
142+
<a href="https://tidelift.com/subscription/request-a-demo?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise">
143+
<button class="ui large orange button">Request a demo</button>
144+
</a>
145+
</div></p>
146+
147+
Enterprise-ready open source software — managed for you
148+
-------------------------------------------------------
89149

150+
The Tidelift Subscription is a managed open source subscription for application
151+
dependencies covering millions of open source projects across JavaScript, Python, Java,
152+
PHP, Ruby, .NET, and more. And now, your favorite probabilistic programming language is included in the Tidelift subscription!
153+
154+
Your subscription includes:
155+
156+
* **Security updates**: Tidelift’s security response team coordinates patches for new breaking security vulnerabilities and alerts immediately through a private channel, so your software supply chain is always secure.
157+
158+
* **Licensing verification and indemnification**: Tidelift verifies license information to enable easy policy enforcement and adds intellectual property indemnification to cover creators and users in case something goes wrong. You always have a 100% up-to-date bill of materials for your dependencies to share with your legal team, customers, or partners.
159+
160+
* **Maintenance and code improvement**: Tidelift ensures the software you rely on keeps working as long as you need it to work. Your managed dependencies are actively maintained and Tidelift recruits additional maintainers where required.
161+
162+
* **Package selection and version guidance**: Tidelift helps you choose the best open source packages from the start—and then guides you through updates to stay on the best releases as new issues arise.
163+
164+
* **Roadmap input**: Take a seat at the table with the creators behind the software you use. PyMC developers and other Tidelift’s participating maintainers earn more income as our software is used by more subscribers, so we’re interested in knowing what you need.
165+
166+
* **Tooling and cloud integration**: Tidelift works with GitHub, GitLab, BitBucket, and more. It supports every cloud platform (and other deployment targets, too).
167+
168+
The end result? All of the capabilities you expect from commercial-grade software, for the full breadth of open source you use. That means less time grappling with esoteric open source trivia, and more time building your own applications — and your business.
169+
170+
.. raw:: html
171+
172+
<style>.centered {text-align: center;}</style>
173+
<p><div class="centered">
174+
<a href="https://tidelift.com/subscription/pkg/pypi-pymc3?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise">
175+
<button class="ui large orange button" color="orange">Learn more</button>
176+
</a>
177+
<a href="https://tidelift.com/subscription/request-a-demo?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise">
178+
<button class="ui large orange button">Request a demo</button>
179+
</a>
180+
</div></p>
181+
182+
Sponsors
183+
========
184+
185+
|NumFOCUS| |Quantopian| |ODSC|
186+
187+
More details about sponsoring PyMC3 can be found `here <https://github.com/pymc-devs/pymc3/blob/master/GOVERNANCE.md#institutional-partners-and-funding>`_.
188+
If you are interested in becoming a sponsor, reach out to `[email protected] <[email protected]>`_
189+
190+
**************
90191
Usage Overview
91-
==============
192+
**************
92193

93194
For a detailed overview of building models in PyMC3, please read the appropriate sections in the rest of the documentation. For a flavor of what PyMC3 models look like, here is a quick example.
94195

95196
First, let's import PyMC3 and `ArviZ <https://arviz-devs.github.io/arviz/>`__ (which handles plotting and diagnostics):
96197

198+
::
199+
97200
import arviz as az
98201
import numpy as np
99202
import pymc3 as pm
@@ -146,9 +249,21 @@ This example will generate 1000 posterior samples on each of two cores using the
146249
The sample is returned as arrays inside a ``MultiTrace`` object, which is then passed to the plotting function. The resulting graph shows a forest plot of the random variables in the model, along with a convergence diagnostic (R-hat) that indicates our model has converged.
147250

148251
.. image:: ./images/forestplot.png
252+
:width: 1000px
149253

150254
See also
151255
========
152256

153257
* `Tutorials <nb_tutorials/index.html>`__
154258
* `Examples <nb_examples/index.html>`__
259+
260+
261+
.. |NumFOCUS| image:: https://numfocus.org/wp-content/uploads/2017/07/NumFocus_LRG.png
262+
:target: http://www.numfocus.org/
263+
:height: 120px
264+
.. |Quantopian| image:: https://raw.githubusercontent.com/pymc-devs/pymc3/master/docs/quantopianlogo.jpg
265+
:target: https://quantopian.com
266+
:height: 120px
267+
.. |ODSC| image:: https://raw.githubusercontent.com/pymc-devs/pymc3/master/docs/odsc_logo.png
268+
:target: https://odsc.com
269+
:height: 120px

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
("Books + Videos", "learn"),
157157
("API", "api"),
158158
("Developer Guide", "developer_guide"),
159-
("About PyMC3", "history")
159+
("About PyMC3", "about")
160160
],
161161
# "fixed_sidebar": "false",
162162
# "description": "Probabilistic Programming in Python: Bayesian Modeling and Probabilistic Machine Learning with Theano"
@@ -331,8 +331,8 @@
331331

332332

333333
def setup(app):
334-
app.add_stylesheet(
334+
app.add_css_file(
335335
"https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css"
336336
)
337-
app.add_stylesheet("default.css")
337+
app.add_css_file("default.css")
338338

docs/source/index.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,22 +127,26 @@
127127

128128
<div class="ui bottom attached segment">
129129
<h2 class="ui dividing header">Support and sponsors</h2>
130-
<p>PyMC3 is a non-profit project under NumFOCUS umbrella. If you want to support PyMC3 financially, you <a href="https://numfocus.salsalabs.org/donate-to-pymc3/index.html">can donate here</a>.</p>
130+
<p>PyMC3 is a non-profit project under NumFOCUS umbrella.
131+
If you value PyMC and want to support its development, consider
132+
<a href="https://numfocus.org/donate-to-pymc3">donating to the project</a> or
133+
read our <a href="https://docs.pymc.io/about.html#support">support PyMC3 page</a>.
134+
</p>
131135

132136
<div class="ui equal width grid">
133137
<div class="column">
134138
<a href="https://numfocus.org/">
135-
<img class="ui image" src="https://www.numfocus.org/wp-content/uploads/2017/03/1457562110.png"/>
139+
<img class="ui image" height="120" src="https://www.numfocus.org/wp-content/uploads/2017/07/NumFocus_LRG.png"/>
136140
</a>
137141
</div>
138142
<div class="column">
139143
<a href="https://quantopian.com">
140-
<img class="ui image" src="https://raw.githubusercontent.com/pymc-devs/pymc3/master/docs/quantopianlogo.jpg"/>
144+
<img class="ui image" height="120" src="https://raw.githubusercontent.com/pymc-devs/pymc3/master/docs/quantopianlogo.jpg"/>
141145
</a>
142146
</div>
143147
<div class="column">
144148
<a href="https://odsc.com/">
145-
<img class="ui image" src="https://raw.githubusercontent.com/pymc-devs/pymc3/master/docs/odsc_logo.png"/>
149+
<img class="ui image" height="120" src="https://raw.githubusercontent.com/pymc-devs/pymc3/master/docs/odsc_logo.png"/>
146150
</a>
147151
</div>
148152
</div>

docs/source/semantic_sphinx/layout.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,19 @@ <h2>Probabilistic Programming in Python</h2>
8080
<div class="ui container" role="main">
8181
{% if pagename == 'index' %}
8282
<div class="ui vertical segment">
83-
<a class="ui image" href="https://mybinder.org/v2/gh/pymc-devs/pymc3/master?filepath=%2Fdocs%2Fsource%2Fnotebooks">
84-
<img src="https://mybinder.org/badge.svg">
85-
</a>
8683
<a class="ui image" href="https://travis-ci.org/pymc-devs/pymc3">
8784
<img src="https://travis-ci.org/pymc-devs/pymc3.svg?branch=master">
8885
</a>
8986
<a class="ui image" href="https://coveralls.io/github/pymc-devs/pymc3?branch=master">
9087
<img src="https://coveralls.io/repos/github/pymc-devs/pymc3/badge.svg?branch=master">
9188
</a>
89+
<a class="ui image" href="https://tidelift.com/subscription/pkg/pypi-pymc3?utm_source=pypi-pymc3&utm_medium=referral&utm_campaign=enterprise">
9290
<a class="ui image" href="https://www.numfocus.org/">
9391
<img src="https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A">
9492
</a>
93+
<a class="ui image" href="https://mybinder.org/v2/gh/pymc-devs/pymc3/master?filepath=%2Fdocs%2Fsource%2Fnotebooks">
94+
<img src="https://mybinder.org/badge_logo.svg">
95+
</a>
9596
<a class="ui image" href="https://hub.docker.com/r/pymc/pymc3">
9697
<img src="https://img.shields.io/docker/automated/pymc/pymc3.svg">
9798
</a>

0 commit comments

Comments
 (0)