11 #ifndef __LATENTMODEL_H__
12 #define __LATENTMODEL_H__
60 virtual int32_t
get_dim()
const=0;
142 virtual const char*
get_name()
const {
return "LatentModel"; }
156 void register_parameters();
CDotFeatures * m_cached_psi
Abstract class CLatentModel It represents the application specific model and contains most of the app...
Latent Features class The class if for representing features for latent learning, e...
void set_caching(bool caching)
CLatentLabels * get_labels() const
CLatentFeatures * get_features() const
Features that support dot products among other operations.
void set_labels(CLatentLabels *labs)
Class SGObject is the base class of all shogun objects.
virtual CData * infer_latent_variable(const SGVector< float64_t > &w, index_t idx)=0
virtual const char * get_name() const
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
virtual int32_t get_dim() const =0
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()