SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
DomainAdaptationSVM.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2007-2011 Christian Widmer
8  * Copyright (C) 2007-2011 Max-Planck-Society
9  */
10 
11 #ifdef USE_SVMLIGHT
12 
13 #ifndef _DomainAdaptation_SVM_H___
14 #define _DomainAdaptation_SVM_H___
15 
16 #include <shogun/lib/config.h>
17 
18 #include <shogun/lib/common.h>
20 
21 
22 namespace shogun
23 {
26 {
27  public:
28 
31 
41 
43  virtual ~CDomainAdaptationSVM();
44 
50  void init(CSVM* presvm, float64_t B);
51 
57 
63  virtual CBinaryLabels* apply_binary(CFeatures* data=NULL);
64 
69  virtual CSVM* get_presvm();
70 
75  virtual float64_t get_B();
76 
81  virtual float64_t get_train_factor();
82 
86  virtual void set_train_factor(float64_t factor);
87 
89  virtual const char* get_name() const { return "DomainAdaptationSVM"; }
90 
91  protected:
92 
97  virtual bool is_presvm_sane();
98 
107  virtual bool train_machine(CFeatures* data=NULL);
108 
109  private:
110  void init();
111 
112  protected:
113 
116 
119 
122 };
123 }
124 #endif //_DomainAdaptation_SVM_H___
125 #endif //USE_SVMLIGHT
EMachineType
Definition: Machine.h:33
void init(CSVM *presvm, float64_t B)
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
virtual bool train_machine(CFeatures *data=NULL)
virtual CBinaryLabels * apply_binary(CFeatures *data=NULL)
virtual EMachineType get_classifier_type()
class DomainAdaptationSVM
double float64_t
Definition: common.h:50
virtual const char * get_name() const
virtual void set_train_factor(float64_t factor)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68
class SVMlight
Definition: SVMLight.h:225
A generic Support Vector Machine Interface.
Definition: SVM.h:49
The Kernel base class.
Definition: Kernel.h:159
Binary Labels for binary classification.
Definition: BinaryLabels.h:37

SHOGUN Machine Learning Toolbox - Documentation