SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LinearRidgeRegression.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 Soeren Sonnenburg
8  */
9 
10 #ifndef _LINEARRIDGEREGRESSION_H__
11 #define _LINEARRIDGEREGRESSION_H__
12 
13 #include <shogun/lib/config.h>
14 
15 #ifdef HAVE_LAPACK
16 
20 
21 namespace shogun
22 {
43 {
44  public:
47 
50 
59 
64  inline void set_tau(float64_t tau) { m_tau = tau; };
65 
71  virtual bool load(FILE* srcfile);
72 
78  virtual bool save(FILE* dstfile);
79 
85  {
87  }
88 
90  virtual const char* get_name() const { return "LinearRidgeRegression"; }
91 
92  protected:
101  virtual bool train_machine(CFeatures* data=NULL);
102 
103  private:
104  void init();
105 
106  protected:
109 };
110 }
111 #endif // HAVE_LAPACK
112 #endif // _LINEARRIDGEREGRESSION_H__

SHOGUN Machine Learning Toolbox - Documentation