SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

SHOGUN Machine Learning Toolbox - Documentation