12 #ifndef _STRUCTURED_OUTPUT_MACHINE__H__
13 #define _STRUCTURED_OUTPUT_MACHINE__H__
27 class CStructuredLabels;
28 struct TMultipleCPinfo;
44 class CStructuredModel;
81 return "StructuredOutputMachine";
210 void register_parameters();
Base class of the labels used in Structured Output (SO) problems.
Class CLossFunction is the base class of all loss functions.
The class Labels models labels, i.e. class assignments of objects.
CSOSVMHelper * get_helper() const
CLossFunction * m_surrogate_loss
virtual float64_t risk_customized_formulation(float64_t *subgrad, float64_t *W, TMultipleCPinfo *info=0)
virtual float64_t risk_1slack_slack_rescale(float64_t *subgrad, float64_t *W, TMultipleCPinfo *info=0)
void set_verbose(bool verbose)
CStructuredModel * m_model
CLossFunction * get_surrogate_loss() const
virtual ~CStructuredOutputMachine()
CFeatures * get_features() const
virtual const char * get_name() const
A generic learning machine interface.
virtual float64_t risk_nslack_margin_rescale(float64_t *subgrad, float64_t *W, TMultipleCPinfo *info=0)
CStructuredOutputMachine()
void set_features(CFeatures *f)
void set_model(CStructuredModel *model)
class CSOSVMHelper contains helper functions to compute primal objectives, dual objectives, average training losses, duality gaps etc. These values will be recorded to check convergence. This class is inspired by the matlab implementation of the block coordinate Frank-Wolfe SOSVM solver [1].
virtual float64_t risk_nslack_slack_rescale(float64_t *subgrad, float64_t *W, TMultipleCPinfo *info=0)
virtual float64_t risk(float64_t *subgrad, float64_t *W, TMultipleCPinfo *info=0, EStructRiskType rtype=N_SLACK_MARGIN_RESCALING)
Class CStructuredModel that represents the application specific model and contains most of the applic...
all of classes and functions are contained in the shogun namespace
virtual void set_labels(CLabels *lab)
The class Features is the base class of all feature objects.
CStructuredModel * get_model() const
MACHINE_PROBLEM_TYPE(PT_STRUCTURED)
virtual float64_t risk_1slack_margin_rescale(float64_t *subgrad, float64_t *W, TMultipleCPinfo *info=0)
void set_surrogate_loss(CLossFunction *loss)