20 CDualLibQPBMSOSVM::CDualLibQPBMSOSVM()
26 CDualLibQPBMSOSVM::CDualLibQPBMSOSVM(
37 int32_t nDim=this->m_model->get_dim();
52 CDualLibQPBMSOSVM::~CDualLibQPBMSOSVM()
56 void CDualLibQPBMSOSVM::init()
61 SG_ADD(&m_lambda,
"m_lambda",
"Regularization constant lambda",
63 SG_ADD(&m_cleanICP,
"m_cleanICP",
"Inactive cutting plane removal flag",
67 "Number of inactive iterations after which ICP will be removed",
71 SG_ADD(&m_cp_models,
"m_cp_models",
"Number of cutting plane models",
83 set_store_train_info(
false);
87 bool CDualLibQPBMSOSVM::train_machine(
CFeatures* data)
92 if (m_verbose||m_store_train_info)
102 m_model->init_training();
107 m_result=svm_bmrm_solver(
this, m_w.vector, m_TolRel, m_TolAbs,
108 m_lambda, m_BufSize, m_cleanICP, m_cleanAfter, m_K, m_Tmax,
112 m_result=svm_ppbm_solver(
this, m_w.vector, m_TolRel, m_TolAbs,
113 m_lambda, m_BufSize, m_cleanICP, m_cleanAfter, m_K, m_Tmax,
117 m_result=svm_p3bm_solver(
this, m_w.vector, m_TolRel, m_TolAbs,
118 m_lambda, m_BufSize, m_cleanICP, m_cleanAfter, m_K, m_Tmax,
119 m_cp_models, m_verbose);
122 m_result=svm_ncbm_solver(
this, m_w.vector, m_TolRel, m_TolAbs,
123 m_lambda, m_BufSize, m_cleanICP, m_cleanAfter,
true ,
127 SG_ERROR(
"CDualLibQPBMSOSVM: m_solver=%d is not supported", m_solver);
130 if (m_result.exitflag>0)
141 #endif //USE_GPL_SHOGUN
Base class of the labels used in Structured Output (SO) problems.
virtual bool init(CFeatures *l, CFeatures *r)
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].
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
The class Features is the base class of all feature objects.