SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SparseInverseCovariance.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 SPINVCOV_H_
11 #define SPINVCOV_H_
12 
13 #include <shogun/lib/config.h>
14 
15 #include <shogun/base/SGObject.h>
16 #include <shogun/lib/SGMatrix.h>
17 
18 namespace shogun
19 {
20 
26 {
27 public:
28 
31 
33  virtual ~CSparseInverseCovariance();
34 
41 
43  const char* get_name() const { return "SparseInverseCovariance"; };
44 
45 
49  int32_t get_lasso_max_iter() const { return m_lasso_max_iter; }
53  int32_t get_max_iter() const { return m_max_iter; }
57  float64_t get_f_gap() const { return m_f_gap; }
61  float64_t get_x_gap() const { return m_x_gap; }
65  float64_t get_xtol() const { return m_xtol; }
66 
70  void set_lasso_max_iter(int32_t lasso_max_iter)
71  {
72  m_lasso_max_iter = lasso_max_iter;
73  }
77  void set_max_iter(int32_t max_iter)
78  {
79  m_max_iter = max_iter;
80  }
84  void set_f_gap(int32_t f_gap)
85  {
86  m_f_gap = f_gap;
87  }
91  void set_x_gap(int32_t x_gap)
92  {
93  m_x_gap = x_gap;
94  }
98  void set_xtol(int32_t xtol)
99  {
100  m_xtol = xtol;
101  }
102 
103 private:
104 
106  void register_parameters();
107 
108 protected:
109 
112 
114  int32_t m_max_iter;
115 
118 
121 
124 };
125 
126 }
127 #endif

SHOGUN Machine Learning Toolbox - Documentation