Skip to content

Commit 2c65116

Browse files
committed
Getting docs ready for v4
example doc restructure working and hopefully illustrative doc skeleton update requirements WIP Change log: - Upload new PyMC logo - Updated conf.py to pymc instead of pymc3 - Start configuring and populating index page - Start configuring and populating learning page - Start configuring and populating api page - Updated API to follow the docs/Architecture.png layout - Start configuring and populating learning page - Fix typo in filename of "index legacy" add community page, other minor changes Continue restructuring the API Delete conflicting files example doc restructure update requirements update requirements and gitignore some fixes add changes introduced by pre-commit checks fix community page title update api for distributions update gaussian process api fix end of file more changes sponsor logos sponsor logos cleanup, other changes changes to satisfy pre-commit checks requirements changes minor changes Add testimonials to docs homepage remove sphinx panels and other changes center buttons add explanation of MAP to glassor minor change fix typo minor changes put content in videos and podcasts section. Change formatting of testimonials (width of 2 cards for better formating in narrow screens) add code example to front page revise some definitions (#5126) minor changes minor changes WIP: organizing notebooks into learning section
1 parent 140dab0 commit 2c65116

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+15005
-1454
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tags
1717

1818
# Sphinx
1919
_build
20+
docs/jupyter_execute
2021

2122
# Merge tool
2223
*.orig

.gitmodules

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

conda-envs/environment-dev-py37.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ dependencies:
2323
- python-graphviz
2424
- python=3.7
2525
- scipy>1.4.1
26-
- sphinx-autobuild>=0.7
26+
- sphinx-copybutton
2727
- sphinx-notfound-page
28-
- sphinx-panels
2928
- sphinx>=1.5
3029
- typing-extensions
3130
- pip:

conda-envs/environment-dev-py38.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ dependencies:
2323
- python-graphviz
2424
- python=3.8
2525
- scipy>1.4.1
26-
- sphinx-autobuild>=0.7
26+
- sphinx-copybutton
2727
- sphinx-notfound-page
28-
- sphinx-panels
2928
- sphinx>=1.5
3029
- typing-extensions>=3.7.4
3130
- pip:

conda-envs/environment-dev-py39.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ dependencies:
2323
- python-graphviz
2424
- python=3.9
2525
- scipy>1.4.1
26-
- sphinx-autobuild>=0.7
26+
- sphinx-copybutton
2727
- sphinx-notfound-page
28-
- sphinx-panels
2928
- sphinx>=1.5
3029
- typing-extensions>=3.7.4
3130
- pip:

conda-envs/windows-environment-dev-py38.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ dependencies:
2727
- pytest-cov>=2.5
2828
- pytest>=3.0
2929
- sphinx-autobuild>=0.7
30+
- sphinx-copybutton
3031
- sphinx-notfound-page
31-
- sphinx-panels
3232
- sphinx>=1.5
3333
- watermark
3434
- pip:

docs/logos/sponsors/numfocus.png

41.4 KB
Loading
File renamed without changes.

docs/pymc_logo.jpg

-82.9 KB
Binary file not shown.

docs/source/_templates/footer.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<footer class="footer mt-5 mt-md-0">
2+
<div class="container">
3+
{% for footer_item in theme_footer_items %}
4+
<div class="footer-item">
5+
{% include footer_item %}
6+
</div>
7+
{% endfor %}
8+
</div>
9+
</footer>

docs/source/_templates/layout.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
<!-- Hide left sidebar in home page -->
44
{% block docs_sidebar %}
5-
{% if pagename != 'index' %}
6-
{{ super() }}
7-
{% endif %}
5+
{% if pagename != 'index' %}
6+
{{ super() }}
7+
{% endif %}
88
{% endblock %}
99

1010
<!-- Hide right sidebar in home page -->
1111
{% block docs_toc %}
12-
{% if pagename != 'index' %}
13-
{{ super() }}
14-
{% endif %}
12+
{% if pagename != 'index' %}
13+
{{ super() }}
14+
{% endif %}
1515
{% endblock %}
1616

1717
<!-- Make body have full width in home page -->
1818
{% block docs_main %}
19-
{% if pagename == 'index' %}
20-
<main class="col-12 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
21-
{% block body %} {% endblock %}
22-
</main>
23-
{% else %}
24-
{{ super() }}
25-
{% endif %}
19+
{% if pagename == 'index' %}
20+
<main class="col-12 py-md-5 pl-md-5 pr-md-4 bd-content" role="main">
21+
{% block body %} {% endblock %}
22+
</main>
23+
{% else %}
24+
{{ super() }}
25+
{% endif %}
2626
{% endblock %}

docs/source/about.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
:orphan:
2-
3-
..
4-
_href from docs/source/index.rst
5-
61
.. _about:
72

83
**********
@@ -41,10 +36,18 @@ PyMC strives to make Bayesian modeling as simple and painless as possible, allo
4136
* Bayesian models can be embedded in larger programs, and results can be analyzed
4237
with the full power of Python.
4338

39+
What's new in version 4
40+
=======================
41+
42+
:bdg-warning:`TODO`
43+
Add text
4444

4545
What's new in version 3
4646
=======================
4747

48+
:bdg-warning:`TODO`
49+
Move this section to a different place
50+
4851
The third major version of PyMC has benefitted from being re-written from scratch. Substantial improvements in the user interface and performance have resulted from this. While PyMC2 relied on Fortran extensions (via f2py) for most of the computational heavy-lifting, PyMC leverages Aesara, a fork of the Theano library from the Montréal Institute for Learning Algorithms (MILA), for array-based expression evaluation, to perform its computation. What this provides, above all else, is fast automatic differentiation, which is at the heart of the gradient-based sampling and optimization methods currently providing inference for probabilistic programming.
4952

5053
Major changes from previous versions:

docs/source/api.rst

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
:orphan:
2-
3-
..
4-
_"api" is referenced in html_theme_options docs/source/conf.py
5-
61
.. _api:
72

83
*************
@@ -13,20 +8,14 @@ API Reference
138
:maxdepth: 2
149

1510
api/distributions
16-
api/bounds
17-
api/inference
18-
api/glm
1911
api/gp
20-
api/plots
21-
api/stats
22-
api/backends
23-
api/math
24-
api/data
2512
api/model
26-
api/model_graph
27-
api/variables
28-
api/shape_utils
2913
api/ode
14+
api/samplers
15+
api/smc
16+
api/step_methods
17+
api/inference
18+
api/plots
3019

3120
Indices and tables
3221
===================

docs/source/api/backends.rst

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

docs/source/api/bounds.rst

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

docs/source/api/data.rst

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

docs/source/api/distributions.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Distributions
66

77
distributions/continuous
88
distributions/discrete
9+
distributions/logprob
910
distributions/multivariate
1011
distributions/mixture
1112
distributions/simulator

docs/source/api/distributions/continuous.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,33 @@ Continuous
1010
HalfFlat
1111
Normal
1212
TruncatedNormal
13-
HalfNormal
14-
SkewNormal
1513
Beta
1614
Kumaraswamy
1715
Exponential
1816
Laplace
19-
AsymmetricLaplace
2017
StudentT
21-
HalfStudentT
2218
Cauchy
2319
HalfCauchy
2420
Gamma
25-
InverseGamma
2621
Weibull
22+
HalfStudentT
2723
LogNormal
2824
ChiSquared
25+
HalfNormal
2926
Wald
3027
Pareto
28+
InverseGamma
3129
ExGaussian
3230
VonMises
31+
SkewNormal
3332
Triangular
3433
Gumbel
35-
Rice
3634
Logistic
3735
LogitNormal
3836
Interpolated
37+
Rice
38+
Moyal
39+
AsymmetricLaplace
3940
PolyaGamma
4041

4142
.. automodule:: pymc.distributions.continuous

docs/source/api/distributions/discrete.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ Discrete
66
.. autosummary::
77

88
Binomial
9-
ZeroInflatedBinomial
109
BetaBinomial
1110
Bernoulli
11+
DiscreteWeibull
1212
Poisson
13-
ZeroInflatedPoisson
1413
NegativeBinomial
14+
Constant
15+
ZeroInflatedPoisson
16+
ZeroInflatedBinomial
1517
ZeroInflatedNegativeBinomial
1618
DiscreteUniform
1719
Geometric
1820
HyperGeometric
1921
Categorical
20-
DiscreteWeibull
21-
Constant
2222
OrderedLogistic
2323
OrderedProbit
2424

docs/source/api/distributions/multivariate.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ Multivariate
66
.. autosummary::
77

88
MvNormal
9-
MatrixNormal
10-
KroneckerNormal
119
MvStudentT
12-
Wishart
13-
LKJCholeskyCov
14-
LKJCorr
15-
Multinomial
16-
OrderedMultinomial
1710
Dirichlet
11+
Multinomial
1812
DirichletMultinomial
13+
OrderedMultinomial
14+
Wishart
15+
WishartBartlett
16+
LKJCorr
17+
LKJCholeskyCov
18+
MatrixNormal
19+
KroneckerNormal
1920
CAR
2021

2122
.. automodule:: pymc.distributions.multivariate

docs/source/api/distributions/simulator.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ Simulator
55
.. currentmodule:: pymc.distributions.simulator
66
.. autosummary::
77

8+
SimulatorRV
89
Simulator
10+
KullbackLiebler
911

1012
.. automodule:: pymc.distributions.simulator
1113
:members:

docs/source/api/distributions/transforms.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
****************************************************************
2-
Transformations of a random variable from one space to another.
2+
Transformations of a random variable from one space to another
33
****************************************************************
44

55
Note that for convenience these entities can be addressed as
66
``pm.transforms.``\ *X* for any name *X*, although they are actually
7-
implemented as ``pm.distributions.transforms.``\*X*.
7+
implemented as ``pm.distributions.transforms.``\ *X*.
88

99
.. currentmodule:: pymc.distributions.transforms
1010

@@ -14,13 +14,11 @@ implemented as ``pm.distributions.transforms.``\*X*.
1414
..
1515
.. autosummary::
1616
17-
transform
17+
Transform
1818
stick_breaking
1919
logodds
2020
interval
2121
log_exp_m1
22-
lowerbound
23-
upperbound
2422
ordered
2523
log
2624
sum_to_1

0 commit comments

Comments
 (0)