11 #ifndef _STRUCTURED_MODEL__H__
12 #define _STRUCTURED_MODEL__H__
29 #define IGNORE_IN_CLASSLIST
60 virtual const char*
get_name()
const;
139 virtual int32_t
get_dim()
const = 0;
260 virtual const char*
get_name()
const {
return "StructuredModel"; }
SGVector< float64_t > psi_truth
Base class of the labels used in Structured Output (SO) problems.
void set_labels(CStructuredLabels *labs)
virtual int32_t get_dim() const =0
SGVector< float64_t > get_joint_feature_vector(int32_t feat_idx, int32_t lab_idx)
CStructuredLabels * get_labels()
virtual int32_t get_num_aux_con() const
virtual int32_t get_num_aux() const
void set_features(CFeatures *feats)
virtual void init_training()
virtual const char * get_name() const
SGSparseVector< float64_t > get_sparse_joint_feature_vector(int32_t feat_idx, int32_t lab_idx)
Class SGObject is the base class of all shogun objects.
virtual CStructuredLabels * structured_labels_factory(int32_t num_labels=0)
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)
float64_t delta_loss(int32_t ytrue_idx, CStructuredData *ypred)
virtual bool check_training_setup() const
virtual ~CStructuredModel()
Class CStructuredModel that represents the application specific model and contains most of the applic...
CStructuredLabels * m_labels
all of classes and functions are contained in the shogun namespace
virtual CResultSet * argmax(SGVector< float64_t > w, int32_t feat_idx, bool const training=true)=0
TMultipleCPinfo(uint32_t from, uint32_t N)
The class Features is the base class of all feature objects.
SGVector< float64_t > psi_pred
SGSparseVector< float64_t > psi_truth_sparse
#define IGNORE_IN_CLASSLIST
virtual const char * get_name() const
SGSparseVector< float64_t > psi_pred_sparse
CFeatures * get_features()
Base class of the components of StructuredLabels.