dai::CBP::Properties Struct Reference

Parameters for CBP. More...

#include <dai/cbp.h>

List of all members.

Public Types

typedef BP::Properties::UpdateType UpdateType
 Enumeration of possible update schedules.

Public Member Functions

 DAI_ENUM (RecurseType, REC_FIXED, REC_LOGZ, REC_BDIFF)
 Enumeration of possible methods for deciding when to stop recursing.
 DAI_ENUM (ChooseMethodType, CHOOSE_RANDOM, CHOOSE_MAXENT, CHOOSE_BBP, CHOOSE_BP_L1, CHOOSE_BP_CFN)
 Enumeration of possible heuristics for choosing clamping variable.
 DAI_ENUM (ClampType, CLAMP_VAR, CLAMP_FACTOR)
 Enumeration of possible clampings: variables or factors.
void set (const PropertySet &opts)
 Set members from PropertySet.
PropertySet get () const
 Get members into PropertySet.
std::string toString () const
 Convert to a string which can be parsed as a PropertySet.

Public Attributes

size_t verbose
 Verbosity (amount of output sent to stderr).
Real tol
 Tolerance for BP convergence test.
UpdateType updates
 Update style for BP.
size_t maxiter
 Maximum number of iterations for BP.
Real rec_tol
 Tolerance used for controlling recursion depth (recurse is REC_LOGZ or REC_BDIFF).
size_t max_levels
 Maximum number of levels of recursion (recurse is REC_FIXED).
Real min_max_adj
 If choose==CHOOSE_BBP and maximum adjoint is less than this value, don't recurse.
ChooseMethodType choose
 Heuristic for choosing clamping variable.
RecurseType recursion
 Method for deciding when to stop recursing.
ClampType clamp
 Whether to clamp variables or factors.
PropertySet bbp_props
 Properties to pass to BBP.
BBPCostFunction bbp_cfn
 Cost function to use for BBP.
size_t rand_seed
 Random seed.
std::string clamp_outfile
 If non-empty, write clamping choices to this file.


Detailed Description

Parameters for CBP.

Member Typedef Documentation

typedef BP::Properties::UpdateType dai::CBP::Properties::UpdateType

Enumeration of possible update schedules.


Member Function Documentation

dai::CBP::Properties::DAI_ENUM ( RecurseType  ,
REC_FIXED  ,
REC_LOGZ  ,
REC_BDIFF   
)

Enumeration of possible methods for deciding when to stop recursing.

dai::CBP::Properties::DAI_ENUM ( ChooseMethodType  ,
CHOOSE_RANDOM  ,
CHOOSE_MAXENT  ,
CHOOSE_BBP  ,
CHOOSE_BP_L1  ,
CHOOSE_BP_CFN   
)

Enumeration of possible heuristics for choosing clamping variable.

dai::CBP::Properties::DAI_ENUM ( ClampType  ,
CLAMP_VAR  ,
CLAMP_FACTOR   
)

Enumeration of possible clampings: variables or factors.

void dai::CBP::Properties::set ( const PropertySet opts  ) 

Set members from PropertySet.

Exceptions:
UNKNOWN_PROPERTY if a Property key is not recognized
NOT_ALL_PROPERTIES_SPECIFIED if an expected Property is missing

PropertySet dai::CBP::Properties::get (  )  const

Get members into PropertySet.

string dai::CBP::Properties::toString (  )  const

Convert to a string which can be parsed as a PropertySet.


Member Data Documentation

Verbosity (amount of output sent to stderr).

Tolerance for BP convergence test.

Update style for BP.

Maximum number of iterations for BP.

Tolerance used for controlling recursion depth (recurse is REC_LOGZ or REC_BDIFF).

Maximum number of levels of recursion (recurse is REC_FIXED).

If choose==CHOOSE_BBP and maximum adjoint is less than this value, don't recurse.

ChooseMethodType dai::CBP::Properties::choose

Heuristic for choosing clamping variable.

Method for deciding when to stop recursing.

Whether to clamp variables or factors.

Properties to pass to BBP.

Cost function to use for BBP.

Random seed.

If non-empty, write clamping choices to this file.


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

Generated on Thu Aug 5 19:04:04 2010 for libDAI by  doxygen 1.5.5