SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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
virtual bool train_locked_implementation(SGVector< index_t > *tasks)
class TaskGroup used to represent a group of tasks. Tasks in group do not overlap.
Definition: TaskGroup.h:28
Features that support dot products among other operations.
Definition: DotFeatures.h:44
class Multitask Logistic Regression used to solve classification problems with a few tasks related vi...
#define MACHINE_PROBLEM_TYPE(PT)
Definition: Machine.h:120
double float64_t
Definition: common.h:50
class MultitaskL12LogisticRegression, a classifier for multitask problems. Supports only task group r...
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68
Binary Labels for binary classification.
Definition: BinaryLabels.h:37

SHOGUN Machine Learning Toolbox - Documentation