> 文章列表 > 小白学Pytorch系列- -torch.distributions API Transforms (2)

小白学Pytorch系列- -torch.distributions API Transforms (2)

小白学Pytorch系列- -torch.distributions API Transforms (2)

小白学Pytorch系列- -torch.distributions API Transforms (2)

小白学Pytorch系列- -torch.distributions API Transforms (2)

AbsTransform

AffineTransform

通过逐点仿射映射进行转换y=loc⁡+scale ×xy=\\operatorname{loc}+\\text { scale } \\times xy=loc+ scale ×x
小白学Pytorch系列- -torch.distributions API Transforms (2)

  • loc (Tensor or float) : 位置参数
  • scale (Tensor or float) : 尺度参数
  • event_dim (int) : 事件形状的可选大小。对于单变量随机变量应该是0,对于向量的分布应该是1,对于矩阵的分布应该是2,等等。

CatTransform

ComposeTransform

CorrCholeskyTransform

CumulativeDistributionTransform

ExpTransform

IndependentTransform

LowerCholeskyTransform

PositiveDefiniteTransform

PowerTransform

ReshapeTransform

SigmoidTransform

通过映射进行转换y=11+exp⁡(−x)y=\\frac{1}{1+\\exp (-x)}y=1+exp(x)1x=logit⁡(y)x=\\operatorname{logit}(y)x=logit(y)
小白学Pytorch系列- -torch.distributions API Transforms (2)

SoftplusTransform

TanhTransform

SoftmaxTransform

StackTransform

StickBreakingTransform

Transform