tfmri.math.shrinkage
tfmri.math.shrinkage¶
- shrinkage(x, threshold, name=None)[source]¶
Shrinkage operator.
In the context of proximal gradient methods, this function is the proximal operator of \(f = \frac{1}{2}{\left\| x \right\|}_{2}^{2}\).
- Parameters
x – A
Tensorof shape[..., n].threshold – A float.
name – A name for this operation (optional).
- Returns
A
Tensorof shape[..., n]and same dtype asx.