35 SG_ERROR(
"LatentModel is not set!\n")
46 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)
virtual float64_t do_inner_loop(float64_t cooling_eps)
virtual float64_t compute_primal_objective() const
virtual CLatentLabels * apply_latent()
Features that support dot products among other operations.
void set_labels(CLatentLabels *labs)
SGVector< float64_t > get_labels()
void set_labels(CLabels *labels)
CLatentLabels * get_labels() const
virtual CData * infer_latent_variable(const SGVector< float64_t > &w, index_t idx)=0
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 SGVector< float64_t > get_w() const
CLabels * get_labels() const
virtual bool train(CFeatures *data=NULL)
Binary Labels for binary classification
void add_latent_label(CData *label)
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