libeblearn
|
An L1 penalty energy given a single input. More...
#include <ebl_energy.h>
Public Member Functions | |
l1_penalty (T threshold=0, T coeff=1) | |
virtual void | fprop (Tstate &in, Tstate &energy) |
virtual void | bprop (Tstate &in, Tstate &energy) |
virtual void | bbprop (Tstate &in, Tstate &energy) |
virtual std::string | describe () |
Returns a string describing this module and its parameters. | |
Protected Attributes | |
T | threshold |
T | coeff |
An L1 penalty energy given a single input.
ebl::l1_penalty< T, Tstate >::l1_penalty | ( | T | threshold = 0 , |
T | coeff = 1 |
||
) |
threshold | A threshold defining a flat region around zero, for derivatives only. |
coeff | A coefficient applied to the energy of the fprop. |