Move `sample_next` to `MetropolisSampler`
Created by: wdphy16
After discussion, we've decided that n_chains
should not be completely removed in exact samplers, because we want a unified interface for all samplers, and n_chains
can be used in PT and pmap samplers.
Now I'm going to break #1013 down to several smaller PRs.
API changes:
- The method
sample_next
inSampler
and exact samplers (ExactSampler
andARDirectSampler
) is removed, and it is only defined inMetropolisSampler
. The module functionnk.sampler.sample_next
also only works withMetropolisSampler
. For exact samplers, please use the methodsample
instead.