return to Reference Library

Numpyro distributions - sample / batch / event shapes

The examples below demonstrate the difference between sample shape (that specified with the sample_shape parameter of the sample method), batch shape (that specified with the batch_shape parameter of the expand method) and event shape (that specified with the distribution sampled from).

Note that batch shape signifies the number instances of a distribution (they must be the same distribution) that is sampled.

Reference for this is here.

return to Reference Library