mlpack  3.1.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces
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) &=& \left\{ \begin{array}{lr} x - lambda & : x > lambda \\ x + lambda & : x < -lambda \\ 0 & : otherwise \end{array} \\ \right. f'(x) &=& \left\{ \begin{array}{lr} 1 & : x > lambda \\ 1 & : x < -lambda \\ 0 & : otherwise \end{array} \right. \end{eqnarray*}

. More...

 

Namespaces

 mlpack
 strip_type.hpp
 
 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) 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.