SHOGUN
6.0.0
src
shogun
regression
LeastSquaresRegression.cpp
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
#include <shogun/lib/config.h>
11
12
#ifdef HAVE_LAPACK
13
#include <
shogun/regression/LeastSquaresRegression.h
>
14
#include <
shogun/regression/LinearRidgeRegression.h
>
15
#include <
shogun/mathematics/lapack.h
>
16
#include <
shogun/mathematics/Math.h
>
17
18
using namespace
shogun
;
19
20
CLeastSquaresRegression::CLeastSquaresRegression
()
21
:
CLinearRidgeRegression
()
22
{
23
m_tau
=0;
24
}
25
26
CLeastSquaresRegression::CLeastSquaresRegression
(
CDenseFeatures<float64_t>
* data,
CLabels
* lab)
27
:
CLinearRidgeRegression
(0, data, lab)
28
{
29
}
30
#endif
Math.h
shogun::CLabels
The class Labels models labels, i.e. class assignments of objects.
Definition:
Labels.h:43
shogun::CLinearRidgeRegression::m_tau
float64_t m_tau
Definition:
LinearRidgeRegression.h:108
LinearRidgeRegression.h
shogun::CLinearRidgeRegression
Class LinearRidgeRegression implements Ridge Regression - a regularized least square method for class...
Definition:
LinearRidgeRegression.h:42
LeastSquaresRegression.h
shogun::CLeastSquaresRegression::CLeastSquaresRegression
CLeastSquaresRegression()
Definition:
LeastSquaresRegression.cpp:20
shogun::CDenseFeatures< float64_t >
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
lapack.h
SHOGUN
Machine Learning Toolbox - Documentation