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 #include <stdio.h>
22 
23 namespace shogun
24 {
27 {
28  public:
29 
32 
42 
44  virtual ~CDomainAdaptationSVM();
45 
51  void init(CSVM* presvm, float64_t B);
52 
58 
64  virtual CBinaryLabels* apply_binary(CFeatures* data=NULL);
65 
70  virtual CSVM* get_presvm();
71 
76  virtual float64_t get_B();
77 
82  virtual float64_t get_train_factor();
83 
87  virtual void set_train_factor(float64_t factor);
88 
90  virtual const char* get_name() const { return "DomainAdaptationSVM"; }
91 
92  protected:
93 
98  virtual bool is_presvm_sane();
99 
108  virtual bool train_machine(CFeatures* data=NULL);
109 
110  private:
111  void init();
112 
113  protected:
114 
117 
120 
123 };
124 }
125 #endif //_DomainAdaptation_SVM_H___
126 #endif //USE_SVMLIGHT

SHOGUN Machine Learning Toolbox - Documentation