latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
SoftmaxTransform
- class tensorplay.distributions.SoftmaxTransform(cache_size: int = 0)[source]
Transform from unconstrained space to the simplex via then normalizing.
This is not bijective and cannot be used for HMC. However this acts mostly coordinate-wise (except for the final normalization), and thus is appropriate for coordinate-wise optimization algorithms.
- property inv: Transform
Returns the inverse
Transformof this transform. This should satisfyt.inv.inv is t.
- log_abs_det_jacobian(x, y)
Computes the log det jacobian log |dy/dx| given input and output.
- property sign: int
Returns the sign of the determinant of the Jacobian, if applicable. In general this only makes sense for bijective transforms.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

