x = self._poisson.rvs(random_state=self.rng, size=(n_samples, self.ndim))
I use self._poisson which is the scipy Poisson, and not the self.rng.poisson (as in delfi/distribution/Gamma.py) which would be numpy. For seeding I pass self.rngas the random_state.
note that in line 53
x = self._poisson.rvs(random_state=self.rng, size=(n_samples, self.ndim))
I use
self._poisson
which is the scipy Poisson, and not theself.rng.poisson
(as indelfi/distribution/Gamma.py
) which would be numpy. For seeding I passself.rng
as therandom_state
.