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

An L1 penalty energy given a single input. More...

#include <ebl_energy.h>

Inheritance diagram for ebl::l1_penalty< T, Tstate >:
ebl::ebm_1< T, Tstate > ebl::module

List of all members.

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

threshold
coeff

Detailed Description

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

An L1 penalty energy given a single input.


Constructor & Destructor Documentation

template<typename T , class Tstate >
ebl::l1_penalty< T, Tstate >::l1_penalty ( threshold = 0,
coeff = 1 
)
Parameters:
thresholdA threshold defining a flat region around zero, for derivatives only.
coeffA coefficient applied to the energy of the fprop.

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