Chap2, Poisson from data rate issue
AliMoallemi opened this issue · 0 comments
AliMoallemi commented
Build graph
data = tf.constant([10., 5.], dtype=tf.float32)
rv_poisson = tfd.Poisson(rate=tf.reduce_mean(data))## instead of -->>rv_poisson = tfd.Poisson(rate=1./tf.reduce_mean(data)) in Poisson rate is mean and in Exponential it should be 1/mean
poisson = rv_poisson.sample()