Skip to content

Commit 7c0a095

Browse files
authored
Fix do/conditioning model docs (#6936)
1 parent 5ed39c3 commit 7c0a095

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

docs/source/api.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ API
99

1010
api/distributions
1111
api/gp
12-
api/model/core
13-
api/model/fgraph
14-
api/model/transform/conditioning
12+
api/model
1513
api/samplers
1614
api/vi
1715
api/smc

docs/source/api/model.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Model
2+
------
3+
4+
.. automodule:: pymc.model
5+
6+
.. toctree::
7+
:maxdepth: 2
8+
9+
model/core
10+
model/conditioning
11+
model/fgraph

docs/source/api/model/transform/conditioning.rst renamed to docs/source/api/model/conditioning.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@ Model Conditioning
55
.. autosummary::
66
:toctree: generated/
77

8+
change_value_transforms
89
do
910
observe
10-
11-
Others
12-
------
13-
14-
.. autosummary::
15-
:toctree: generated/
16-
17-
change_value_transforms
1811
remove_value_transforms

docs/source/api/model/core.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
Model
2-
-----
3-
41
Model creation and inspection
52
-----------------------------
63

@@ -16,6 +13,7 @@ Model creation and inspection
1613
Others
1714
------
1815

16+
.. currentmodule:: pymc.model.core
1917
.. autosummary::
2018
:toctree: generated/
2119

pymc/model/transform/conditioning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def change_value_transforms(
299299
new_p = untransformed_p['p']
300300
std_q = ((1 / pm.find_hessian(mean_q, vars=[new_p])) ** 0.5)[0]
301301
302-
print(f" Mean, Standard deviation\np {mean_q['p']:.2}, {std_q[0]:.2}")
302+
print(f" Mean, Standard deviation\\np {mean_q['p']:.2}, {std_q[0]:.2}")
303303
# Mean, Standard deviation
304304
# p 0.67, 0.16
305305
@@ -379,7 +379,7 @@ def remove_value_transforms(
379379
with remove_value_transforms(transformed_m) as untransformed_m:
380380
new_p = untransformed_m["p"]
381381
std_q = ((1 / pm.find_hessian(mean_q, vars=[new_p])) ** 0.5)[0]
382-
print(f" Mean, Standard deviation\np {mean_q['p']:.2}, {std_q[0]:.2}")
382+
print(f" Mean, Standard deviation\\np {mean_q['p']:.2}, {std_q[0]:.2}")
383383
384384
# Mean, Standard deviation
385385
# p 0.67, 0.16

0 commit comments

Comments
 (0)