OpenGM  2.3.x
Discrete Graphical Model Library
Public Types | Public Member Functions | List of all members
opengm::learning::WeightRegularizer< T > Class Template Reference

#include <weights.hxx>

+ Collaboration diagram for opengm::learning::WeightRegularizer< T >:

Public Types

enum  RegularizationType { NoRegularizer =-1, L1Regularizer =1, L2Regularizer =2 }
 

Public Member Functions

 WeightRegularizer (const int regularizationNorm, const double lambda=1.0)
 
 WeightRegularizer (const RegularizationType regularizationType=L2Regularizer, const double lambda=1.0)
 
double lambda () const
 
RegularizationType regularizationType () const
 
int regularizerNorm () const
 
double evaluate (const Weights< T > &weights)
 

Detailed Description

template<class T>
class opengm::learning::WeightRegularizer< T >

Definition at line 88 of file weights.hxx.

Member Enumeration Documentation

§ RegularizationType

Enumerator
NoRegularizer 
L1Regularizer 
L2Regularizer 

Definition at line 90 of file weights.hxx.

Constructor & Destructor Documentation

§ WeightRegularizer() [1/2]

template<class T >
opengm::learning::WeightRegularizer< T >::WeightRegularizer ( const int  regularizationNorm,
const double  lambda = 1.0 
)
inline

Definition at line 96 of file weights.hxx.

§ WeightRegularizer() [2/2]

template<class T >
opengm::learning::WeightRegularizer< T >::WeightRegularizer ( const RegularizationType  regularizationType = L2Regularizer,
const double  lambda = 1.0 
)
inline

Definition at line 112 of file weights.hxx.

Member Function Documentation

§ evaluate()

template<class T >
double opengm::learning::WeightRegularizer< T >::evaluate ( const Weights< T > &  weights)
inline

Definition at line 130 of file weights.hxx.

+ Here is the call graph for this function:

§ lambda()

template<class T >
double opengm::learning::WeightRegularizer< T >::lambda ( ) const
inline

Definition at line 118 of file weights.hxx.

§ regularizationType()

template<class T >
RegularizationType opengm::learning::WeightRegularizer< T >::regularizationType ( ) const
inline

Definition at line 122 of file weights.hxx.

§ regularizerNorm()

template<class T >
int opengm::learning::WeightRegularizer< T >::regularizerNorm ( ) const
inline

Definition at line 126 of file weights.hxx.