Closed nabriis closed 3 months ago
Feature Allow samplers to be initialized without a target, i.e.,
sampler = NUTSNew()
then allow target to be set later via
sampler.target = target
Behavior should be the same as if setting target during init, i.e.,
sampler1 = NUTSNew(target) sampler2 = NUTSNew() sampler2.target = target samples1 = sampler1.warmup(200).sample(200) samples2 = sampler2.warmup(200).sample(200) assert np.allclose(samples1, samples2)
Feature Allow samplers to be initialized without a target, i.e.,
then allow target to be set later via
Behavior should be the same as if setting target during init, i.e.,