libDAI
Public Member Functions | Public Attributes | List of all members
dai::LC::Properties Struct Reference

Parameters for LC. More...

#include <dai/lc.h>

Public Member Functions

 DAI_ENUM (CavityType, FULL, PAIR, PAIR2, UNIFORM)
 Enumeration of possible ways to initialize the cavities. More...
 
 DAI_ENUM (UpdateType, SEQFIX, SEQRND)
 Enumeration of different update schedules. More...
 

Public Attributes

size_t verbose
 Verbosity (amount of output sent to stderr) More...
 
size_t maxiter
 Maximum number of iterations. More...
 
Real tol
 Tolerance for convergence test. More...
 
bool reinit
 Complete or partial reinitialization of cavity graphs? More...
 
Real damping
 Damping constant (0.0 means no damping, 1.0 is maximum damping) More...
 
CavityType cavity
 How to initialize the cavities. More...
 
UpdateType updates
 What update schedule to use. More...
 
std::string cavainame
 Name of the algorithm used to initialize the cavity distributions. More...
 
PropertySet cavaiopts
 Parameters for the algorithm used to initialize the cavity distributions. More...
 

Detailed Description

Parameters for LC.

Member Function Documentation

dai::LC::Properties::DAI_ENUM ( CavityType  ,
FULL  ,
PAIR  ,
PAIR2  ,
UNIFORM   
)

Enumeration of possible ways to initialize the cavities.

The following initialization methods are defined:

  • FULL calculates the marginal using calcMarginal()
  • PAIR calculates only second order interactions using calcPairBeliefs() with accurate == false
  • PAIR2 calculates only second order interactions using calcPairBeliefs() with accurate == true
  • UNIFORM uses a uniform distribution
dai::LC::Properties::DAI_ENUM ( UpdateType  ,
SEQFIX  ,
SEQRND   
)

Enumeration of different update schedules.

The following update schedules are defined:

  • SEQFIX sequential fixed schedule
  • SEQRND sequential random schedule

Member Data Documentation

size_t dai::LC::Properties::verbose

Verbosity (amount of output sent to stderr)

size_t dai::LC::Properties::maxiter

Maximum number of iterations.

Real dai::LC::Properties::tol

Tolerance for convergence test.

bool dai::LC::Properties::reinit

Complete or partial reinitialization of cavity graphs?

Real dai::LC::Properties::damping

Damping constant (0.0 means no damping, 1.0 is maximum damping)

CavityType dai::LC::Properties::cavity

How to initialize the cavities.

UpdateType dai::LC::Properties::updates

What update schedule to use.

std::string dai::LC::Properties::cavainame

Name of the algorithm used to initialize the cavity distributions.

PropertySet dai::LC::Properties::cavaiopts

Parameters for the algorithm used to initialize the cavity distributions.


The documentation for this struct was generated from the following file: