SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MultitaskLeastSquaresRegression.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) 2012 Sergey Lisitsyn
8  */
9 
10 #ifndef MULTITASKLSREGRESSION_H_
11 #define MULTITASKLSREGRESSION_H_
12 
13 #include <shogun/lib/config.h>
16 
17 namespace shogun
18 {
25 {
26 
27  public:
30 
31 
33 
42  float64_t z, CDotFeatures* training_data,
43  CRegressionLabels* training_labels, CTaskRelation* task_relation);
44 
47 
49  virtual const char* get_name() const
50  {
51  return "MultitaskLeastSquaresRegression";
52  }
53 
55  int32_t get_max_iter() const;
57  float64_t get_q() const;
59  int32_t get_regularization() const;
61  int32_t get_termination() const;
63  float64_t get_tolerance() const;
65  float64_t get_z() const;
66 
68  void set_max_iter(int32_t max_iter);
70  void set_q(float64_t q);
72  void set_regularization(int32_t regularization);
74  void set_termination(int32_t termination);
76  void set_tolerance(float64_t tolerance);
78  void set_z(float64_t z);
79 
81  virtual float64_t apply_one(int32_t i);
82 
83  protected:
84 
86  virtual bool train_machine(CFeatures* data=NULL);
87 
90 
91  private:
92 
94  void register_parameters();
95 
97  void initialize_parameters();
98 
99  protected:
100 
103 
105  int32_t m_termination;
106 
108  int32_t m_max_iter;
109 
112 
115 
118 
119 };
120 }
121 #endif

SHOGUN Machine Learning Toolbox - Documentation