SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
KernelRidgeRegression.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  * Written (W) 2006 Mikio L. Braun
8  * Written (W) 1999-2009 Soeren Sonnenburg
9  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
10  */
11 
12 #ifndef _KERNELRIDGEREGRESSION_H__
13 #define _KERNELRIDGEREGRESSION_H__
14 
15 #include <shogun/lib/config.h>
17 #include <shogun/kernel/Kernel.h>
19 
20 namespace shogun
21 {
22 
54 {
55  public:
58 
61 
69 
72 
77  inline virtual void set_tau(float64_t tau) { m_tau = tau; };
78 
83  inline void set_epsilon(float64_t epsilon) { m_epsilon = epsilon; }
84 
90  virtual bool load(FILE* srcfile);
91 
97  virtual bool save(FILE* dstfile);
98 
104  {
106  }
107 
109  virtual const char* get_name() const { return "KernelRidgeRegression"; }
110 
111  protected:
120  virtual bool train_machine(CFeatures* data=NULL);
121 
128  virtual bool solve_krr_system();
129 
130  private:
131  void init();
132 
133  protected:
136 
137  private:
139  float64_t m_epsilon;
140 
141 };
142 }
143 
144 #endif // _KERNELRIDGEREGRESSION_H__
EMachineType
Definition: Machine.h:33
Class KernelRidgeRegression implements Kernel Ridge Regression - a regularized least square method fo...
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
MACHINE_PROBLEM_TYPE(PT_REGRESSION)
A generic KernelMachine interface.
Definition: KernelMachine.h:51
void set_epsilon(float64_t epsilon)
virtual const char * get_name() const
double float64_t
Definition: common.h:50
virtual void set_tau(float64_t tau)
virtual bool save(FILE *dstfile)
virtual EMachineType get_classifier_type()
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
The Kernel base class.
Definition: Kernel.h:159
virtual bool train_machine(CFeatures *data=NULL)
virtual bool load(FILE *srcfile)

SHOGUN Machine Learning Toolbox - Documentation