22 register_parameters();
28 m_do_caching(do_caching),
31 register_parameters();
76 for (int32_t i = 0; i < num; ++i)
87 void CLatentModel::register_parameters()
CDotFeatures * m_cached_psi
Latent Features class The class if for representing features for latent learning, e...
virtual int32_t get_num_labels() const
CLatentLabels * get_labels() const
CLatentFeatures * get_features() const
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.
CLabels * get_labels() const
virtual int32_t get_num_vectors() 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)
CDotFeatures * get_cached_psi_features() const
virtual CDotFeatures * get_psi_feature_vectors()=0
all of classes and functions are contained in the shogun namespace
Binary Labels for binary classification.
virtual int32_t get_num_vectors() const
void set_features(CLatentFeatures *feats)
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.
void cache_psi_features()
bool set_latent_label(int32_t idx, CData *label)