Skip to content

Commit 7dd28e6

Browse files
authored
Update mh.jl (#1424)
1 parent 0d40f40 commit 7dd28e6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/inference/mh.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ end
5252
# Samples s with MH and m with PG
5353
chain = sample(gdemo(1.5, 2.0), Gibbs(MH(:s), PG(10, :m)), 1_000)
5454
mean(chain)
55-
````
55+
```
5656
5757
Using custom distributions defaults to using static MH:
5858
@@ -75,7 +75,7 @@ chain = sample(
7575
1_000
7676
)
7777
mean(chain)
78-
````
78+
```
7979
8080
Specifying explicit proposals using the `AdvancedMH` interface:
8181
@@ -98,7 +98,7 @@ chain = sample(
9898
1_000
9999
)
100100
mean(chain)
101-
````
101+
```
102102
103103
Using a custom function to specify a conditional distribution:
104104
@@ -121,7 +121,7 @@ chain = sample(
121121
1_000
122122
)
123123
mean(chain)
124-
````
124+
```
125125
126126
Providing a covariance matrix will cause `MH` to perform random-walk
127127
sampling in the transformed space with proposals drawn from a multivariate
@@ -145,7 +145,7 @@ chain = sample(
145145
1_000
146146
)
147147
mean(chain)
148-
````
148+
```
149149
150150
"""
151151
function MH(space...)

0 commit comments

Comments
 (0)