You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56-23Lines changed: 56 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,17 @@ AdvancedMH.jl currently provides a robust implementation of random walk Metropol
4
4
5
5
Further development aims to provide a suite of adaptive Metropolis-Hastings implementations.
6
6
7
-
Currently there are two sampler types. The first is `RWMH`, which represents random-walk MH sampling, and the second is `StaticMH`, which draws proposals
8
-
from only a prior distribution without incrementing the previous sample.
7
+
AdvancedMH works by allowing users to define composable `Proposal` structs in different formats.
9
8
10
9
## Usage
11
10
12
-
AdvancedMH works by accepting some log density function which is used to construct a `DensityModel`. The `DensityModel` is then used in a `sample` call.
11
+
First, construct a `DensityModel`, which is a wrapper around the log density function for your inference problem. The `DensityModel` is then used in a `sample` call.
13
12
14
13
```julia
15
14
# Import the package.
16
15
using AdvancedMH
17
16
using Distributions
17
+
using MCMCChains
18
18
19
19
# Generate a set of data from the posterior we want to estimate.
0 commit comments