SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
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 
11 #ifndef MULTITASKL12LOGISTICREGRESSION_H_
12 #define MULTITASKL12LOGISTICREGRESSION_H_
13 
14 #include <shogun/lib/config.h>
15 #ifdef USE_GPL_SHOGUN
16 
17 #include <shogun/base/unique.h>
18 
20 
21 namespace shogun
22 {
28 class CMultitaskL12LogisticRegression : public CMultitaskLogisticRegression
29 {
30 
31  public:
33 
34 
35  CMultitaskL12LogisticRegression();
36 
45  CMultitaskL12LogisticRegression(
46  float64_t rho1, float64_t rho2, CDotFeatures* training_data,
47  CBinaryLabels* training_labels, CTaskGroup* task_group);
48 
50  virtual ~CMultitaskL12LogisticRegression();
51 
55  void set_rho1(float64_t rho1);
56 
60  float64_t get_rho1() const;
61 
65  void set_rho2(float64_t rho2);
66 
70  float64_t get_rho2() const;
71 
76  virtual const char* get_name() const
77  {
78  return "MultitaskL12LogisticRegression";
79  }
80 
81  private:
82 
84  void init();
85 
86  protected:
87 
92  virtual bool train_machine(CFeatures* data=NULL);
93 
98  virtual bool train_locked_implementation(SGVector<index_t>* tasks);
99 
100  protected:
101 
102  class Self;
104  Unique<Self> self;
105 
106 };
107 }
108 #endif //USE_GPL_SHOGUN
109 #endif
110 
#define MACHINE_PROBLEM_TYPE(PT)
Definition: Machine.h:120
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18

SHOGUN Machine Learning Toolbox - Documentation