libeblearn
ebl::linear_shrink_module< T, Tstate > Class Template Reference

#include <ebl_nonlinearity.h>

Inheritance diagram for ebl::linear_shrink_module< T, Tstate >:
ebl::module_1_1< T, Tstate > ebl::module

List of all members.

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
default_bias

Detailed Description

template<typename T, class Tstate = bbstate_idx<T>>
class ebl::linear_shrink_module< T, Tstate >

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.


Constructor & Destructor Documentation

template<typename T , class Tstate >
ebl::linear_shrink_module< T, Tstate >::linear_shrink_module ( parameter< T, Tstate > *  p,
intg  nf,
bias = 0 
)

Constructor.

Parameters:
nfThe number of features.

The documentation for this class was generated from the following files: