|
1 |
| -.. _intro: |
| 1 | +.. _about: |
2 | 2 |
|
3 |
| -************ |
4 |
| -Introduction |
5 |
| -************ |
| 3 | +*********** |
| 4 | +About PyMC3 |
| 5 | +*********** |
6 | 6 |
|
| 7 | +.. _intro: |
7 | 8 |
|
8 | 9 | Purpose
|
9 | 10 | =======
|
@@ -86,14 +87,116 @@ Python 3 compatibility, improved summary plots, and some important bug fixes.
|
86 | 87 |
|
87 | 88 | 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.
|
88 | 89 |
|
| 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 | +------------------------------------------------------- |
89 | 149 |
|
| 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 | +************** |
90 | 191 | Usage Overview
|
91 |
| -============== |
| 192 | +************** |
92 | 193 |
|
93 | 194 | 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.
|
94 | 195 |
|
95 | 196 | First, let's import PyMC3 and `ArviZ <https://arviz-devs.github.io/arviz/>`__ (which handles plotting and diagnostics):
|
96 | 197 |
|
| 198 | +:: |
| 199 | + |
97 | 200 | import arviz as az
|
98 | 201 | import numpy as np
|
99 | 202 | import pymc3 as pm
|
@@ -146,9 +249,21 @@ This example will generate 1000 posterior samples on each of two cores using the
|
146 | 249 | 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.
|
147 | 250 |
|
148 | 251 | .. image:: ./images/forestplot.png
|
| 252 | + :width: 1000px |
149 | 253 |
|
150 | 254 | See also
|
151 | 255 | ========
|
152 | 256 |
|
153 | 257 | * `Tutorials <nb_tutorials/index.html>`__
|
154 | 258 | * `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 |
0 commit comments