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

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

AbsTransform

AffineTransform

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

  • 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 = 1 1 + exp ⁡ ( − x ) y=\frac{1}{1+\exp (-x)} y=1+exp(x)1 x = logit ⁡ ( y ) x=\operatorname{logit}(y) x=logit(y)

SoftplusTransform

TanhTransform

SoftmaxTransform

StackTransform

StickBreakingTransform

Transform

你可能感兴趣的:(PyTorch框架,pytorch,机器学习,深度学习)