11 #ifndef __FACTOR_GRAPH_MODEL_H__ 12 #define __FACTOR_GRAPH_MODEL_H__ 14 #include <shogun/lib/config.h> 53 virtual const char*
get_name()
const {
return "FactorGraphModel"; }
162 virtual int32_t
get_dim()
const;
Class CFactorType defines the way of factor parameterization.
SGVector< int32_t > get_params_mapping(const int32_t ftype_id)
virtual int32_t get_dim() const
Base class of the labels used in Structured Output (SO) problems.
SGVector< float64_t > fparams_to_w()
CDynamicObjectArray * m_factor_types
void add_factor_type(CFactorType *ftype)
virtual SGVector< float64_t > get_joint_feature_vector(int32_t feat_idx, CStructuredData *y)
CFactorType * get_factor_type(const int32_t ftype_id) const
CDynamicObjectArray * get_factor_types() const
void w_to_fparams(SGVector< float64_t > w)
virtual void init_training()
virtual CResultSet * argmax(SGVector< float64_t > w, int32_t feat_idx, bool const training=true)
CFactorGraphModel defines a model in terms of CFactorGraph and CMAPInference, where parameters are as...
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
SGVector< int32_t > get_global_params_mapping() const
Class CStructuredModel that represents the application specific model and contains most of the applic...
all of classes and functions are contained in the shogun namespace
void del_factor_type(const int32_t ftype_id)
The class Features is the base class of all feature objects.
SGVector< int32_t > m_w_map
virtual float64_t delta_loss(CStructuredData *y1, CStructuredData *y2)
SGVector< float64_t > m_w_cache
virtual void init_primal_opt(float64_t regularization, SGMatrix< float64_t > &A, SGVector< float64_t > a, SGMatrix< float64_t > B, SGVector< float64_t > &b, SGVector< float64_t > &lb, SGVector< float64_t > &ub, SGMatrix< float64_t > &C)
Base class of the components of StructuredLabels.
virtual const char * get_name() const