bound_scaled_multiplicative¶
- bound_scaled_multiplicative(param: Tensor, pos: Tensor, neg: Tensor, max: float | None, min: float | None, **kwargs) Tensor[source]¶
Computes the scaled update of multiplicative parameter dependence.
This is sometimes also referred to as “soft parameter dependence” and is equivalent to power dependence with an exponent of 1.
\[U = \left(\frac{P_\text{max} - P}{P_\text{max} - P_\text{min}}\right) U_+ - \left(\frac{P - P_\text{min}}{P_\text{max} - P_\text{min}}\right) U_-\]- Parameters:
param (torch.Tensor) – parameter with update bounding, \(P\).
pos (torch.Tensor) – potentiative update being applied, \(U_+\).
neg (torch.Tensor) – depressive update being applied, \(U_-\).
max (float | None) – value of the upper bound, \(P_\text{max}\).
min (float | None) – value of the lower bound, \(P_\text{min}\).
- Returns:
bounded update.
- Return type: