Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

Chapter 3 | use of tfd.Independend | TFP version

Open Pindar777 opened this issue 6 years ago • 1 comments

Hi @matthew-mcateer,

could you please elaborate on the indtroduction of these lines in Chapter 3?

sds = tfd.Independent(tfd.Uniform(low=[0., 0.], high=[100., 100.]), reinterpreted_batch_ndims=1, name='sds')

At the moment the texts says

we will initially model them as uniform on 0 to 100. We will include both standard deviations in our model using a single line of TFP code

Later on in Chapter 3 the two prio distributions for the sigmas are just modeled 'plain vanilla' with

rv_sds = tfd.Uniform(name="rv_sds", low=[0., 0.], high=[100., 100.])

More over the 'variable sds' does not show up anymore in Chapter 3.

So, why is the Independent distribution from batch of distributions introduced at all and which gains would be realized if used?

Pindar777 avatar Jan 13 '19 15:01 Pindar777

Did you figure this out? Can you share your email so we could discuss about TF Probability?

bluesky314 avatar Apr 17 '19 20:04 bluesky314