File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 9
9
10
10
api/distributions
11
11
api/gp
12
- api/model/core
13
- api/model/fgraph
14
- api/model/transform/conditioning
12
+ api/model
15
13
api/samplers
16
14
api/vi
17
15
api/smc
Original file line number Diff line number Diff line change
1
+ Model
2
+ ------
3
+
4
+ .. automodule :: pymc.model
5
+
6
+ .. toctree ::
7
+ :maxdepth: 2
8
+
9
+ model/core
10
+ model/conditioning
11
+ model/fgraph
Original file line number Diff line number Diff line change @@ -5,14 +5,7 @@ Model Conditioning
5
5
.. autosummary ::
6
6
:toctree: generated/
7
7
8
+ change_value_transforms
8
9
do
9
10
observe
10
-
11
- Others
12
- ------
13
-
14
- .. autosummary ::
15
- :toctree: generated/
16
-
17
- change_value_transforms
18
11
remove_value_transforms
Original file line number Diff line number Diff line change 1
- Model
2
- -----
3
-
4
1
Model creation and inspection
5
2
-----------------------------
6
3
@@ -16,6 +13,7 @@ Model creation and inspection
16
13
Others
17
14
------
18
15
16
+ .. currentmodule :: pymc.model.core
19
17
.. autosummary ::
20
18
:toctree: generated/
21
19
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ def change_value_transforms(
299
299
new_p = untransformed_p['p']
300
300
std_q = ((1 / pm.find_hessian(mean_q, vars=[new_p])) ** 0.5)[0]
301
301
302
- print(f" Mean, Standard deviation\n p {mean_q['p']:.2}, {std_q[0]:.2}")
302
+ print(f" Mean, Standard deviation\\ np {mean_q['p']:.2}, {std_q[0]:.2}")
303
303
# Mean, Standard deviation
304
304
# p 0.67, 0.16
305
305
@@ -379,7 +379,7 @@ def remove_value_transforms(
379
379
with remove_value_transforms(transformed_m) as untransformed_m:
380
380
new_p = untransformed_m["p"]
381
381
std_q = ((1 / pm.find_hessian(mean_q, vars=[new_p])) ** 0.5)[0]
382
- print(f" Mean, Standard deviation\n p {mean_q['p']:.2}, {std_q[0]:.2}")
382
+ print(f" Mean, Standard deviation\\ np {mean_q['p']:.2}, {std_q[0]:.2}")
383
383
384
384
# Mean, Standard deviation
385
385
# p 0.67, 0.16
You can’t perform that action at this time.
0 commit comments