22 register_parameters();
31 register_parameters();
76 for (int32_t i = 0; i < num; ++i)
87 void CLatentModel::register_parameters()
virtual int32_t get_num_labels() const
CDotFeatures * m_cached_psi
Latent Features class The class if for representing features for latent learning, e...
float64_t get_label(int32_t idx)
Features that support dot products among other operations.
void set_labels(CLatentLabels *labs)
static CBinaryLabels * to_binary(CLabels *base_labels)
void add(bool *param, const char *name, const char *description="")
Class SGObject is the base class of all shogun objects.
CLatentLabels * get_labels() const
virtual CData * infer_latent_variable(const SGVector< float64_t > &w, index_t idx)=0
CLatentFeatures * m_features
virtual void argmax_h(const SGVector< float64_t > &w)
virtual CDotFeatures * get_psi_feature_vectors()=0
all of classes and functions are contained in the shogun namespace
CLabels * get_labels() const
Binary Labels for binary classification.
CLatentFeatures * get_features() const
virtual int32_t get_num_vectors() const
void set_features(CLatentFeatures *feats)
CDotFeatures * get_cached_psi_features() const
abstract class for latent labels As latent labels always depends on the given application, this class only defines the API that the user has to implement for latent labels.
virtual int32_t get_num_vectors() const
void cache_psi_features()
bool set_latent_label(int32_t idx, CData *label)