SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MultitaskL12LogisticRegression.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  * Copyright (C) 2014 Sergey Lisitsyn
8  */
9 
10 #ifndef MULTITASKL12LOGISTICREGRESSION_H_
11 #define MULTITASKL12LOGISTICREGRESSION_H_
12 
13 #include <shogun/lib/config.h>
14 
15 #include <shogun/base/unique.h>
16 
18 
19 namespace shogun
20 {
27 {
28 
29  public:
31 
32 
34 
44  float64_t rho1, float64_t rho2, CDotFeatures* training_data,
45  CBinaryLabels* training_labels, CTaskGroup* task_group);
46 
49 
53  void set_rho1(float64_t rho1);
54 
58  float64_t get_rho1() const;
59 
63  void set_rho2(float64_t rho2);
64 
68  float64_t get_rho2() const;
69 
74  virtual const char* get_name() const
75  {
76  return "MultitaskL12LogisticRegression";
77  }
78 
79  private:
80 
82  void init();
83 
84  protected:
85 
90  virtual bool train_machine(CFeatures* data=NULL);
91 
97 
98  protected:
99 
100  class Self;
101  Unique<Self> self;
102 
103 };
104 }
105 #endif

SHOGUN Machine Learning Toolbox - Documentation