36 SG_ERROR(
"LatentModel is not set!\n")
47 for (
index_t i = 0; i < num_examples; ++i)
Abstract class CLatentModel It represents the application specific model and contains most of the app...
virtual void dense_dot_range(float64_t *output, int32_t start, int32_t stop, float64_t *alphas, float64_t *vec, int32_t dim, float64_t b)
The class Labels models labels, i.e. class assignments of objects.
void set_epsilon(float64_t eps)
CLatentLabels * get_labels() const
virtual float64_t do_inner_loop(float64_t cooling_eps)
virtual CLatentLabels * apply_latent()
Features that support dot products among other operations.
virtual float64_t compute_primal_objective() const
void set_labels(CLatentLabels *labs)
SGVector< float64_t > get_labels()
CLabels * get_labels() const
void set_labels(CLabels *labels)
virtual CData * infer_latent_variable(const SGVector< float64_t > &w, index_t idx)=0
virtual SGVector< float64_t > get_w() const
CDotFeatures * get_cached_psi_features() const
virtual CDotFeatures * get_psi_feature_vectors()=0
all of classes and functions are contained in the shogun namespace
abstract implementaion of Linear Machine with latent variable This is the base implementation of all ...
virtual bool train(CFeatures *data=NULL)
Binary Labels for binary classification.
virtual int32_t get_num_vectors() const
void add_latent_label(CData *label)
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.