12 #ifndef _STRUCTURED_OUTPUT_MACHINE__H__ 13 #define _STRUCTURED_OUTPUT_MACHINE__H__ 15 #include <shogun/lib/config.h> 27 class CStructuredLabels;
28 struct TMultipleCPinfo;
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.
virtual const char * get_name() 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
virtual ~CStructuredOutputMachine()
A generic learning machine interface.
CSOSVMHelper * get_helper() const
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)
CFeatures * get_features() const
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.
CLossFunction * get_surrogate_loss() const
MACHINE_PROBLEM_TYPE(PT_STRUCTURED)
CStructuredModel * get_model() const
virtual float64_t risk_1slack_margin_rescale(float64_t *subgrad, float64_t *W, TMultipleCPinfo *info=0)
void set_surrogate_loss(CLossFunction *loss)