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.

Classes

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...

 

Namespaces

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

Detailed Description

Author
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 http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file softshrink.hpp.