tensorflow / probability

Probabilistic reasoning and statistical analysis in TensorFlow

Home Page:https://www.tensorflow.org/probability/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Addition of "location" type parameter in the Gamma distribution

ikrommyd opened this issue · comments

Adding a loc type parameter to the Gamma distribution like scipy has would be beneficial.
It is relatively common in physcs for people to use the Gamma distribution and data shifts are always important in such things.
@jonas-eschle

You can use the TransformedDistribution to apply these transformations in the meantime (and were this to ever be added, this is how we'd implement it):

shifted_scaled_gamma = tfd.TransformedDistribution(tfd.Gamma(...), [tfb.Shift(loc), tfb.Scale(scale)])

Thanks a lot for the suggestion. Great concept!