ScaleWeibull

Contents

ScaleWeibull#

class liesel_ptm.ScaleWeibull(value, scale, name, bijector=<tfp.bijectors.Softplus 'softplus' batch_shape=[] forward_min_event_ndims=0 inverse_min_event_ndims=0 dtype_x=? dtype_y=?>)[source]#

Bases: Var

A variable with a Weibull prior on its square.

Parameters:
  • value (Any) – Initial value of the variable.

  • concentration – Concentration parameter of the inverse gamma distribution. In some parameterizations, this parameter is called a.

  • scale (float | Var | Node) – Scale parameter of the inverse gamma distribution. In some parameterizations, this parameter is called b.

  • name (str) – Name of the variable.

  • bijector (Bijector | None) – A tensorflow bijector instance. If a bijector is supplied, the variable will be transformed using the bijector. This renders the variable itself weak, meaning that it is a deterministic function of the newly created transformed variable. The prior is transferred to this transformed variable and transformed according to the change-of-variables theorem. (default: <tfp.bijectors.Softplus 'softplus' batch_shape=[] forward_min_event_ndims=0 inverse_min_event_ndims=0 dtype_x=? dtype_y=?>)

Notes

The variable itself is weak, meaning that it is always defined as a deterministic function of a random variable, in this case the square root. This random variable is available as variance_param. If a bijector is supplied, this bijector is applied to variance_param, such that variance_param becomes weak, too, and the random variable is given by ScaleWeibull.transformed.

Methods

predict

Returns posterior samples of this variable.

Attributes