Skip to content

Commit

Permalink
Update to use sample adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
nabriis committed Sep 12, 2024
1 parent 2a5a91e commit 408f66a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cuqi/experimental/mcmc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# Set up sampler
sampler = MH(target)
# Sample from the target distribution (Alternatively calling sample_adapt to tune the sampler)
samples = sampler.sample(Ns=100, Nb=100) # Burn-in (Nb) removed by default
# Sample from the target distribution (Alternatively calling sample with explicit scale parameter set in sampler)
samples = sampler.sample_adapt(Ns=100, Nb=100) # Burn-in (Nb) removed by default
This has now changed to to a more object-oriented API which provides more flexibility and control over the sampling process.
Expand Down

0 comments on commit 408f66a

Please sign in to comment.