libeblearn
|
#include <ebl_nonlinearity.h>
Public Member Functions | |
linear_shrink_module (parameter< T, Tstate > *p, intg nf, T bias=0) | |
virtual | ~linear_shrink_module () |
Destructor. | |
virtual void | fprop (Tstate &in, Tstate &out) |
forward | |
virtual void | bprop (Tstate &in, Tstate &out) |
backward | |
virtual void | bbprop (Tstate &in, Tstate &out) |
2nd deriv backward | |
virtual linear_shrink_module < T, Tstate > * | copy () |
Returns a deep copy of this module. | |
virtual std::string | describe () |
Returns a string describing this module and its parameters. | |
Protected Attributes | |
Tstate | bias |
T | default_bias |
A piece-wise linear shrinkage module that parametrizes the location of the shrinkage operator. This function is useful for learning since there is always gradients flowing through it.
ebl::linear_shrink_module< T, Tstate >::linear_shrink_module | ( | parameter< T, Tstate > * | p, |
intg | nf, | ||
T | bias = 0 |
||
) |
Constructor.
nf | The number of features. |