Skip to content

Commit 005ba5f

Browse files
kataevDenis Kataevtwiecki
authored
Another small fixes in docs and imports (#7030)
* Remove old import from autosummary doc pages * Fix small error * Correct place for model_to_networkx & model_to_graphviz * Correct currentmodule source for pytensorf.rst * Update docs/source/api/model/core.rst Co-authored-by: Thomas Wiecki <[email protected]> * Fix sampling & jax docs imports --------- Co-authored-by: Denis Kataev <[email protected]> Co-authored-by: Thomas Wiecki <[email protected]>
1 parent 915e6a2 commit 005ba5f

File tree

5 files changed

+35
-16
lines changed

5 files changed

+35
-16
lines changed

docs/source/api/math.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ Functions exposed in pymc.math
6767
sgn
6868
ceil
6969
floor
70-
det
7170
matrix_inverse
72-
extract_diag
73-
matrix_dot
74-
trace
7571
sigmoid
7672
logsumexp
7773
invlogit

docs/source/api/model/core.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ Model creation and inspection
66
:toctree: generated/
77

88
Model
9-
model_to_graphviz
10-
model_to_networkx
119
modelcontext
1210

1311
Others
@@ -22,3 +20,14 @@ Others
2220
set_data
2321
Point
2422
compile_fn
23+
24+
25+
Graph visualization
26+
-------------------
27+
28+
.. currentmodule:: pymc.model_graph
29+
.. autosummary::
30+
:toctree: generated/
31+
32+
model_to_networkx
33+
model_to_graphviz

docs/source/api/pytensorf.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PyTensor utils
22
**************
33

4-
.. currentmodule:: pymc
4+
.. currentmodule:: pymc.pytensorf
55

66
.. autosummary::
77
:toctree: generated/

docs/source/api/samplers.rst

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,39 @@ Samplers
44
This submodule contains functions for MCMC and forward sampling.
55

66

7-
.. currentmodule:: pymc
7+
.. currentmodule:: pymc.sampling.forward
88

99
.. autosummary::
1010
:toctree: generated/
1111

12-
sample
1312
sample_prior_predictive
1413
sample_posterior_predictive
15-
sample_posterior_predictive_w
16-
sampling.jax.sample_blackjax_nuts
17-
sampling.jax.sample_numpyro_nuts
18-
init_nuts
1914
draw
2015

16+
17+
.. currentmodule:: pymc.sampling.mcmc
18+
19+
.. autosummary::
20+
:toctree: generated/
21+
22+
sample
23+
init_nuts
24+
25+
.. currentmodule:: pymc.sampling.jax
26+
27+
.. autosummary::
28+
:toctree: generated/
29+
30+
sample_blackjax_nuts
31+
sample_numpyro_nuts
32+
33+
2134
Step methods
2235
************
2336

24-
.. currentmodule:: pymc
25-
2637
HMC family
2738
----------
39+
.. currentmodule:: pymc.step_methods.hmc
2840

2941
.. autosummary::
3042
:toctree: generated/
@@ -34,6 +46,7 @@ HMC family
3446

3547
Metropolis family
3648
-----------------
49+
.. currentmodule:: pymc.step_methods
3750

3851
.. autosummary::
3952
:toctree: generated/
@@ -53,6 +66,7 @@ Metropolis family
5366

5467
Other step methods
5568
------------------
69+
.. currentmodule:: pymc.step_methods
5670

5771
.. autosummary::
5872
:toctree: generated/

pymc/distributions/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __getattr__(name):
5757
warnings.warn(f"{name} has been deprecated, use ordered instead.", FutureWarning)
5858
return ordered
5959

60-
if name in ("univariate_sum_to_1, multivariate_sum_to_1"):
60+
if name in ("univariate_sum_to_1", "multivariate_sum_to_1"):
6161
warnings.warn(f"{name} has been deprecated, use sum_to_1 instead.", FutureWarning)
6262
return sum_to_1
6363

0 commit comments

Comments
 (0)