SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DomainAdaptationMulticlassLibLinear.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) 2012 Sergey Lisitsyn
8  * Copyright (C) 2012 Sergey Lisitsyn
9  */
10 
11 #ifndef _DOMAINADAPTATIONMULTICLASSLIBLINEAR_H___
12 #define _DOMAINADAPTATIONMULTICLASSLIBLINEAR_H___
13 #include <shogun/lib/config.h>
14 #ifdef HAVE_LAPACK
16 
17 namespace shogun
18 {
19 
24 {
25  public:
28 
36  CDotFeatures* target_features, CLabels* target_labels,
37  CLinearMulticlassMachine* source_machine);
38 
41 
43  virtual CBinaryLabels* get_submachine_outputs(int32_t);
44 
46  virtual const char* get_name() const
47  {
48  return "DomainAdaptationMulticlassLibLinear";
49  }
50 
54  float64_t get_source_bias() const;
58  void set_source_bias(float64_t source_bias);
59 
67  void set_train_factor(float64_t train_factor);
68 
76  void set_source_machine(CLinearMulticlassMachine* source_machine);
77 
78 protected:
79 
82 
83 private:
84 
86  void init_defaults();
87 
89  void register_parameters();
90 
91 protected:
92 
95 
98 
101 };
102 }
103 #endif /* HAVE_LAPACK */
104 #endif
virtual SGMatrix< float64_t > obtain_regularizer_matrix() const
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
Features that support dot products among other operations.
Definition: DotFeatures.h:44
generic linear multiclass machine
void set_source_machine(CLinearMulticlassMachine *source_machine)
double float64_t
Definition: common.h:50
multiclass LibLinear wrapper. Uses Crammer-Singer formulation and gradient descent optimization algor...
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
Binary Labels for binary classification.
Definition: BinaryLabels.h:37
domain adaptation multiclass LibLinear wrapper Source domain is assumed to b

SHOGUN Machine Learning Toolbox - Documentation