Darwin
1.10(beta)
|
Interface for various MAP inference (energy minimization) algorithms. More...
Public Member Functions | |
drwnMAPInference (const drwnFactorGraph &graph) | |
drwnMAPInference (const drwnMAPInference &inf) | |
virtual void | clear () |
Clear internally cached data (e.g., computation graph) | |
virtual std::pair< double, double > | inference (drwnFullAssignment &mapAssignment)=0 |
Run inference (or resume for iterative algorithms). Algorithms may initialize from mapAssignment if not empty. Returns an upper and lower bound (if available) of the minimum energy. The upper bound is the same as the energy of the best solution found (i.e., same as graph.getEnergy(mapAssignment) ). | |
Protected Attributes | |
const drwnFactorGraph & | _graph |
reference to initial clique potentials | |
Interface for various MAP inference (energy minimization) algorithms.
Algorithms operate on a factor graph (see drwnFactorGraph) that is assumed to be provided in energy function form, i.e., where
and the task is to find
. A constant reference is maintained to the factor graph, so it is important that the drwnFactorGraph object not be destoryed before destroying the drwnMAPInference object.