softshrink.hpp File Reference
Include dependency graph for softshrink.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  SoftShrink< InputDataType, OutputDataType >
 Soft Shrink operator is defined as,

\begin{eqnarray*} f(x) &=& \begin{cases} x - \lambda & : x > \lambda \\ x + \lambda & : x < -\lambda \\ 0 & : otherwise. \\ \end{cases} \\ f'(x) &=& \begin{cases} 1 & : x > \lambda \\ 1 & : x < -\lambda \\ 0 & : otherwise. \end{cases} \end{eqnarray*}

. More...



Linear algebra utility functions, generally performed on matrices or vectors.
Artificial Neural Network.

Detailed Description

Lakshya Ojha

The soft shrink function has threshold proportional to the noise level given by the user. The use of a Soft Shrink activation function provides adaptive denoising at various noise levels using a single CNN (Convolution Neural Network) without a requirement to train a unique CNN for each noise level.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see for more information.

Definition in file softshrink.hpp.