Parameters for CBP.
More...
#include <dai/cbp.h>
|
typedef BP::Properties::UpdateType | UpdateType |
| Enumeration of possible update schedules. More...
|
|
|
| DAI_ENUM (RecurseType, REC_FIXED, REC_LOGZ, REC_BDIFF) |
| Enumeration of possible methods for deciding when to stop recursing. More...
|
|
| DAI_ENUM (ChooseMethodType, CHOOSE_RANDOM, CHOOSE_MAXENT, CHOOSE_BBP, CHOOSE_BP_L1, CHOOSE_BP_CFN) |
| Enumeration of possible heuristics for choosing clamping variable. More...
|
|
| DAI_ENUM (ClampType, CLAMP_VAR, CLAMP_FACTOR) |
| Enumeration of possible clampings: variables or factors. More...
|
|
void | set (const PropertySet &opts) |
| Set members from PropertySet. More...
|
|
PropertySet | get () const |
| Get members into PropertySet. More...
|
|
std::string | toString () const |
| Convert to a string which can be parsed as a PropertySet. More...
|
|
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.
- Exceptions
-
UNKNOWN_PROPERTY | if a Property key is not recognized |
NOT_ALL_PROPERTIES_SPECIFIED | if an expected Property is missing |
string dai::CBP::Properties::toString |
( |
| ) |
const |
Convert to a string which can be parsed as a PropertySet.
size_t dai::CBP::Properties::verbose |
Verbosity (amount of output sent to stderr)
Real dai::CBP::Properties::tol |
Tolerance for BP convergence test.
size_t dai::CBP::Properties::maxiter |
Maximum number of iterations for BP.
Real dai::CBP::Properties::rec_tol |
Tolerance used for controlling recursion depth (recurse is REC_LOGZ or REC_BDIFF)
size_t dai::CBP::Properties::max_levels |
Maximum number of levels of recursion (recurse is REC_FIXED)
Real dai::CBP::Properties::min_max_adj |
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.
Cost function to use for BBP.
size_t dai::CBP::Properties::rand_seed |
std::string dai::CBP::Properties::clamp_outfile |
If non-empty, write clamping choices to this file.
The documentation for this struct was generated from the following files:
- include/dai/cbp.h
- src/cbp.cpp