18 #ifndef __defined_libdai_alldai_h
19 #define __defined_libdai_alldai_h
47 #ifdef DAI_WITH_TREEEP
62 #ifdef DAI_WITH_DECMAP
97 InfAlg *
newInfAlg(
const std::string &name,
const FactorGraph &fg,
const PropertySet &opts );
116 InfAlg *
newInfAlgFromString(
const std::string &nameOpts,
const FactorGraph &fg,
const std::map<std::string,std::string> &aliases );
128 std::pair<std::string, PropertySet>
parseNameProperties(
const std::string &s,
const std::map<std::string,std::string> &aliases );
136 std::map<std::string,std::string>
readAliasesFile(
const std::string &filename );
Defines class Evidence, which stores multiple observations of joint states of variables.
Defines class BP, which implements (Loopy) Belief Propagation.
std::pair< std::string, PropertySet > parseNameProperties(const std::string &s)
Extracts the name and property set from a string s in the format "name[key1=val1,key2=val2,...]" or "name".
Definition: alldai.cpp:112
Defines class LC, which implements loop corrections for approximate inference.
std::map< std::string, std::string > readAliasesFile(const std::string &filename)
Reads aliases from file named filename.
Definition: alldai.cpp:152
Defines class HAK, which implements a variant of Generalized Belief Propagation.
InfAlg * newInfAlgFromString(const std::string &nameOpts, const FactorGraph &fg)
Constructs a new inference algorithm.
Definition: alldai.cpp:100
Defines class MR, which implements loop corrections as proposed by Montanari and Rizzo.
Defines class CBP, which implements Conditioned Belief Propagation.
Defines classes related to Expectation Maximization (EMAlg, ParameterEstimation, CondProbEstimation a...
Defines class JTree, which implements the junction tree algorithm.
Defines classes GLC and Cobweb, which implement the "Generalized Loop Correction method".
std::set< std::string > builtinInfAlgNames()
Returns a set of names of all available inference algorithms.
Definition: alldai.cpp:83
Defines class DecMAP, which constructs a MAP state by decimation.
std::map< std::string, InfAlg * > & builtinInfAlgs()
Returns a map that contains for each built-in inference algorithm its name and a pointer to an object...
Definition: alldai.cpp:78
Defines the Property and PropertySet classes, which are mainly used for managing parameters of infere...
Defines class Gibbs, which implements Gibbs sampling.
Namespace for libDAI.
Definition: alldai.cpp:16
Defines the general interface for inference methods in libDAI (classes InfAlg, DaiAlg<>, DaiAlgFG and DaiAlgRG).
Defines class FBP, which implements Fractional Belief Propagation.
Allows the user to specify which algorithms will be built into libDAI.
Defines class MF which implements the Mean Field algorithm.
Defines class TRWBP, which implements Tree-Reweighted Belief Propagation.
InfAlg * newInfAlg(const std::string &name, const FactorGraph &fg, const PropertySet &opts)
Constructs a new inference algorithm.
Definition: alldai.cpp:91
Defines ExactInf class, which can be used for exact inference on small factor graphs.
Defines class TreeEP, which implements Tree Expectation Propagation.