Closed dburov190 closed 4 years ago
It seems that there's a minor bug with the way sampling is performed in TransitionRates for GammaSampler. This is a definition of draw method from GammaSampler:
TransitionRates
GammaSampler
draw
def draw(self): """Return `sample`, where `sample ~ Gamma(k, theta)`""" return self.minimum + np.random.gamma(self.k, self.theta)
And this is from TransitionRates:
def __draw_using_sampler(sampler, distributional_parameters): return np.array([sampler.minimum + sampler.draw() for param in distributional_parameters])
Moreover, BetaSampler doesn't have a minimum instance variable, so it breaks (in simple_measurements.py, for example).
BetaSampler
minimum
simple_measurements.py
It seems that there's a minor bug with the way sampling is performed in
TransitionRates
forGammaSampler
. This is a definition ofdraw
method fromGammaSampler
:And this is from
TransitionRates
:Moreover,
BetaSampler
doesn't have aminimum
instance variable, so it breaks (insimple_measurements.py
, for example).