SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MKLRegression.cpp
Go to the documentation of this file.
3 #ifdef USE_SVMLIGHT
5 #endif //USE_SVMLIGHT
6 
7 using namespace shogun;
8 
10 {
11  if (!s)
12  {
13 #ifdef USE_SVMLIGHT
14  s=new CSVRLight();
15 #endif //USE_SVMLIGHT
16  if (!s)
17  s=new CLibSVR();
18  set_svm(s);
19  }
20 }
21 
23 {
24 }
25 
27 {
29  return 0;
30 
31  // not correct needs explicit access to alpha and alpha*
32  //float64_t suma=0;
33  //int32_t nsv=svm->get_num_support_vectors();
34  //for (int32_t i=0; i<nsv; i++)
35  // suma+=CMath::abs(svm->get_alpha(i))*tube_epsilon-svm->get_alpha(i);
36  //return suma;
37 }
38 
40 {
42  return 0;
43 }
44 
46 {
48  ASSERT(svm)
51 }

SHOGUN Machine Learning Toolbox - Documentation