SHOGUN  6.0.0
MKLRegression.cpp
Go to the documentation of this file.
3 
4 
5 using namespace shogun;
6 
8 {
9  if (!s)
10  {
11 
12  if (!s)
13  s=new CLibSVR();
14  set_svm(s);
15  }
16 }
17 
19 {
20 }
21 
23 {
25  return 0;
26 
27  // not correct needs explicit access to alpha and alpha*
28  //float64_t suma=0;
29  //int32_t nsv=svm->get_num_support_vectors();
30  //for (int32_t i=0; i<nsv; i++)
31  // suma+=CMath::abs(svm->get_alpha(i))*tube_epsilon-svm->get_alpha(i);
32  //return suma;
33 }
34 
36 {
38  return 0;
39 }
40 
42 {
44  ASSERT(svm)
47 }
virtual void init_training()
virtual int32_t get_num_labels() const =0
CLabels * m_labels
Definition: Machine.h:365
#define SG_NOTIMPLEMENTED
Definition: SGIO.h:138
CSVM * svm
Definition: MKL.h:409
virtual float64_t compute_mkl_dual_objective()
#define ASSERT(x)
Definition: SGIO.h:200
double float64_t
Definition: common.h:60
CMKLRegression(CSVM *s=NULL)
virtual float64_t compute_sum_alpha()
Multiple Kernel Learning.
Definition: MKL.h:85
virtual EMachineType get_classifier_type()
Definition: Machine.cpp:92
bool interleaved_optimization
Definition: MKL.h:434
void set_svm(CSVM *s)
Definition: MKL.h:113
Class LibSVR, performs support vector regression using LibSVM.
Definition: LibSVR.h:70
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
A generic Support Vector Machine Interface.
Definition: SVM.h:49

SHOGUN Machine Learning Toolbox - Documentation