#include <dai/cbp.h>
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. |
typedef BP::Properties::UpdateType dai::CBP::Properties::UpdateType |
Enumeration of possible update schedules.
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.
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.
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.
RecurseType dai::CBP::Properties::recursion |
Method for deciding when to stop recursing.
ClampType dai::CBP::Properties::clamp |
Whether to clamp variables or factors.
Properties to pass to BBP.
Cost function to use for BBP.
Random seed.
std::string dai::CBP::Properties::clamp_outfile |
If non-empty, write clamping choices to this file.