SoftplusTransform#
- class pytorch_forecasting.data.encoders.SoftplusTransform(cache_size=0)[来源]#
基础:
Transform
通过映射 \(\text{Softplus}(x) = \log(1 + \exp(x))\) 进行转换。 当 \(x > 20\) 时,实施将回归为线性函数。
- Inherited-members:
方法
forward_shape
(形状)根据输入形状推断前向计算的形状。
inverse_shape
(形状)根据输出形状推断逆计算的形状。
log_abs_det_jacobian
(x, y)根据输入和输出计算对数行列式雅可比 log |dy/dx|。
with_cache
([缓存大小])属性
bijective
余域
domain
event_dim
inv
返回此转换的逆
Transform
。sign