beanmachine.ppl.distributions.flat module

class beanmachine.ppl.distributions.flat.Flat(shape=(1,))

Bases: torch.distributions.distribution.Distribution

Flat distribution used as an improper prior. Samples 0 with shape sample shape

Args

shape: pass a tuple, and give a shape of Flat prior.

arg_constraints = {}
has_enumerate_support = False
has_rsample = True
log_prob(value)

Returns the log of the probability density/mass function evaluated at value.

Parameters

value (Tensor) –

rsample(sample_shape)

Generates a sample_shape shaped reparameterized sample or sample_shape shaped batch of reparameterized samples if the distribution parameters are batched.

sample()

Generates a sample_shape shaped sample or sample_shape shaped batch of samples if the distribution parameters are batched.

support = Real()