class
SigmoidTransform
extends
TransformSigmoidTransform()Element-wise sigmoid bijection .
Maps element-wise. The natural
unconstrained → probability transform — composed with a base
distribution on , the pushforward lives on the
unit interval. Monotone increasing, bijective, event_dim = 0.
Notes
Forward: .
Inverse (logit): .
Log Jacobian determinant:
The transform is closely related to the StickBreakingTransform
(which generalises to the simplex) and to TanhTransform
(which targets ).
Examples
>>> import lucid
>>> from lucid.distributions.transforms import SigmoidTransform
>>> T = SigmoidTransform()
>>> y = T(lucid.tensor(0.0)) # σ(0) = 0.5
Tensor(0.5)Methods (1)
fn
log_abs_det_jacobian
→Tensorlog_abs_det_jacobian(x: Tensor, y: Tensor)Log-Jacobian of the sigmoid map.