|
OpenGM
2.3.x
Discrete Graphical Model Library
|
LOC Algorithm
K. Jung, P. Kohli and D. Shah, "Local Rules for Global MAP: When Do They Work?", NIPS 2009.
More...
#include <loc.hxx>
Inheritance diagram for opengm::LOC< GM, ACC >:
Collaboration diagram for opengm::LOC< GM, ACC >:Classes | |
| class | Parameter |
Public Member Functions | |
| LOC (const GraphicalModelType &, const Parameter ¶m=Parameter()) | |
| std::string | name () const |
| const GraphicalModelType & | graphicalModel () const |
| InferenceTermination | infer () |
| void | reset () |
| template<class VisitorType > | |
| InferenceTermination | infer (VisitorType &) |
| void | setStartingPoint (typename std::vector< LabelType >::const_iterator) |
| set initial labeling More... | |
| InferenceTermination | arg (std::vector< LabelType > &, const size_t=1) const |
| output a solution More... | |
| ValueType | value () const |
| return the solution (value) More... | |
| template<class VI_ITER > | |
| void | setBorderDirty (VI_ITER begin, VI_ITER end) |
| template<class VI_ITER > | |
| void | setInsideClean (VI_ITER begin, VI_ITER end) |
| template<class VI_ITER > | |
| bool | hasDirtyInsideVariables (VI_ITER begin, VI_ITER end) |
Public Member Functions inherited from opengm::Inference< GM, ACC > | |
| virtual | ~Inference () |
| virtual InferenceTermination | args (std::vector< std::vector< LabelType > > &) const |
| virtual InferenceTermination | marginal (const size_t, IndependentFactorType &) const |
| output a solution for a marginal for a specific variable More... | |
| virtual InferenceTermination | factorMarginal (const size_t, IndependentFactorType &) const |
| output a solution for a marginal for all variables connected to a factor More... | |
| virtual ValueType | bound () const |
| return a bound on the solution More... | |
| InferenceTermination | constrainedOptimum (std::vector< IndexType > &, std::vector< LabelType > &, std::vector< LabelType > &) const |
| InferenceTermination | modeFromMarginal (std::vector< LabelType > &) const |
| InferenceTermination | modeFromFactorMarginal (std::vector< LabelType > &) const |
Public Attributes | |
| OPENGM_GM_TYPE_TYPEDEFS | |
LOC Algorithm
K. Jung, P. Kohli and D. Shah, "Local Rules for Global MAP: When Do They Work?", NIPS 2009.
In this implementation, the user needs to set the parameter of the truncated geometric distribution by hand. Depending on the size of the subgraph, either A* or exhaustive search is used for MAP estimation on the subgraph
| typedef ACC opengm::LOC< GM, ACC >::AccumulationType |
| typedef opengm::external::AD3Inf<SubGmType,AccumulationType> opengm::LOC< GM, ACC >::Ad3SubInf |
| typedef opengm::AStar<SubGmType,AccumulationType> opengm::LOC< GM, ACC >::AStarSubInf |
| typedef opengm::MessagePassing<SubGmType, AccumulationType,UpdateRulesTypeBp , opengm::MaxDistance> opengm::LOC< GM, ACC >::BpSubInf |
| typedef opengm::DynamicProgramming<SubGmType,AccumulationType> opengm::LOC< GM, ACC >::DpSubInf |
| typedef opengm::visitors::EmptyVisitor<LOC<GM,ACC> > opengm::LOC< GM, ACC >::EmptyVisitorType |
| typedef GM opengm::LOC< GM, ACC >::GraphicalModelType |
| typedef opengm::LazyFlipper<SubGmType,AccumulationType> opengm::LOC< GM, ACC >::LfSubInf |
| typedef Movemaker<GraphicalModelType> opengm::LOC< GM, ACC >::MovemakerType |
| typedef SubOptimizer::SubGmType opengm::LOC< GM, ACC >::SubGmType |
| typedef SubmodelOptimizer<GM,ACC> opengm::LOC< GM, ACC >::SubOptimizer |
| typedef opengm::visitors::TimingVisitor<LOC<GM,ACC> > opengm::LOC< GM, ACC >::TimingVisitorType |
| typedef opengm::MessagePassing<SubGmType, AccumulationType,UpdateRulesTypeTrbp, opengm::MaxDistance> opengm::LOC< GM, ACC >::TrBpSubInf |
| typedef opengm::BeliefPropagationUpdateRules<SubGmType,AccumulationType> opengm::LOC< GM, ACC >::UpdateRulesTypeBp |
| typedef opengm::TrbpUpdateRules<SubGmType,AccumulationType> opengm::LOC< GM, ACC >::UpdateRulesTypeTrbp |
| typedef opengm::visitors::VerboseVisitor<LOC<GM,ACC> > opengm::LOC< GM, ACC >::VerboseVisitorType |
| opengm::LOC< GM, ACC >::LOC | ( | const GraphicalModelType & | gm, |
| const Parameter & | param = Parameter() |
||
| ) |
|
inlinevirtual |
output a solution
| [out] | arg | labeling |
| argIndex | solution index (1=best, 2=second best, etc.) |
Reimplemented from opengm::Inference< GM, ACC >.
|
inlinevirtual |
Implements opengm::Inference< GM, ACC >.
|
inline |
|
inlinevirtual |
Implements opengm::Inference< GM, ACC >.
| InferenceTermination opengm::LOC< GM, ACC >::infer | ( | VisitorType & | visitor | ) |
|
inlinevirtual |
Implements opengm::Inference< GM, ACC >.
| void opengm::LOC< GM, ACC >::reset | ( | ) |
|
inline |
|
inline |
|
inlinevirtual |
set initial labeling
| begin | iterator to the beginning of a sequence of labels |
Reimplemented from opengm::Inference< GM, ACC >.
|
inlinevirtual |
return the solution (value)
Reimplemented from opengm::Inference< GM, ACC >.
| opengm::LOC< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS |
1.8.9.1