21 SG_UNSTABLE(
"CMAPInference::CMAPInference()",
"\n");
32 REQUIRE(fg != NULL,
"%s::CMAPInference(): fg cannot be NULL!\n",
get_name());
34 switch(inference_method)
46 SG_ERROR(
"%s::CMAPInference(): LoopyMaxProduct has not been implemented!\n",
50 SG_ERROR(
"%s::CMAPInference(): LPRelaxation has not been implemented!\n",
54 SG_ERROR(
"%s::CMAPInference(): TRW-S has not been implemented!\n",
58 SG_ERROR(
"%s::CMAPInference(): unsupported inference method!\n",
74 void CMAPInference::init()
116 register_parameters();
122 register_parameters();
130 void CMAPInferImpl::register_parameters()
static void fill_vector(T *vec, int32_t len, T value)
virtual float64_t inference(SGVector< int32_t > assignment)=0
float64_t get_energy() const
Class SGObject is the base class of all shogun objects.
int32_t get_num_vars() const
Class CFactorGraphObservation is used as the structured output.
CFactorGraphObservation * m_outputs
all of classes and functions are contained in the shogun namespace
Class CFactorGraph a factor graph is a structured input in general.
virtual const char * get_name() const
CFactorGraphObservation * get_structured_outputs() const
#define SG_UNSTABLE(func,...)
CMAPInferImpl * m_infer_impl