Closed rlouf closed 3 years ago
Since batch and iterative sampling share the same API and philosophy it would be preferable to combine both execution models in the same object. We want to be able to do things like:
sampler = mcx.sampler(...) for sample in sampler: pass
or
sampler = mcx.sampler(...) iter(sampler) sample = next(sampler)
The first behavior is already implemented, the sampler is an iterable.
Since batch and iterative sampling share the same API and philosophy it would be preferable to combine both execution models in the same object. We want to be able to do things like:
or
The first behavior is already implemented, the sampler is an iterable.