Skip to content

Commit 36350e8

Browse files
committed
List dims module functionality in the docs
1 parent a4032a1 commit 36350e8

File tree

7 files changed

+89
-1
lines changed

7 files changed

+89
-1
lines changed

docs/source/api/dims.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.. _api_dims:
2+
3+
Dims
4+
====
5+
6+
This submodule contains functions for defining distributions and operations that use explicit dimensions.
7+
8+
The module is presented in :doc:`dims_module`.
9+
10+
.. currentmodule:: pymc.dims
11+
12+
.. autosummary::
13+
:toctree: generated/
14+
15+
dims/model
16+
dims/math
17+
dims/distributions
18+
dims/transforms
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
********************
2+
Scalar distributions
3+
********************
4+
5+
.. currentmodule:: pymc.dims
6+
.. autosummary::
7+
:toctree: generated/
8+
:template: distribution.rst
9+
10+
Flat
11+
HalfFlat
12+
Normal
13+
HalfNormal
14+
LogNormal
15+
StudentT
16+
HalfStudentT
17+
Cauchy
18+
HalfCauchy
19+
Beta
20+
Laplace
21+
Gamma
22+
InverseGamma
23+
24+
25+
********************
26+
Vector distributions
27+
********************
28+
29+
.. currentmodule:: pymc.dims
30+
.. autosummary::
31+
:toctree: generated/
32+
:template: distribution.rst
33+
34+
Categorical
35+
MvNormal
36+
ZeroSumNormal

docs/source/api/dims/math.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
***************************************
2+
Mathematical operations with dimensions
3+
***************************************
4+
5+
This module wraps all the mathematical operations defined in :doc:`pytensor.xtensor.math <pytensor:libdoc_xtensor_math>`.
6+
7+
It includes a ``linalg`` submodule that wraps all the operations defined in :doc:`pytensor.xtensor.linalg <pytensor:libdoc_xtensor_linalg>`.
8+
9+
Operations defined at the module level in :doc:`pytensor.xtensor <pytensor:libdoc_xtensor_module_function>` are available at the parent model in ``pymc.dims`` instead of in here.

docs/source/api/dims/model.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
******************
2+
Model constructors
3+
******************
4+
5+
.. currentmodule:: pymc.dims
6+
.. autosummary::
7+
:toctree: generated/
8+
9+
Data
10+
Deterministic
11+
Potential

docs/source/api/dims/transforms.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
***********************
2+
Distribution Transforms
3+
***********************
4+
5+
.. currentmodule:: pymc.dims.transforms
6+
.. autosummary::
7+
:toctree: generated/
8+
9+
LogTransform
10+
LogOddsTransform
11+
ZeroSumTransform

docs/source/learn/core_notebooks/dims_module.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"id": "17e37649edaa8d0d",
66
"metadata": {},
77
"source": [
8+
"(dims_module)=\n",
9+
"\n",
810
"# PyMC dims module"
911
]
1012
},

docs/source/learn/core_notebooks/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
:maxdepth: 1
66

77
pymc_overview
8-
GLM_linear
98
model_comparison
109
posterior_predictive
1110
dimensionality
1211
pymc_pytensor
12+
dims_module
13+
GLM_linear
1314
Gaussian_Processes
1415
:::
1516

0 commit comments

Comments
 (0)