LeastSquaresRegression.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Copyright (C) 2012 Soeren Sonnenburg
00008  */
00009 
00010 #ifndef _LEASTSQUARESREGRESSION_H__
00011 #define _LEASTSQUARESREGRESSION_H__
00012 
00013 #include <shogun/lib/config.h>
00014 #include <shogun/regression/Regression.h>
00015 #include <shogun/regression/LinearRidgeRegression.h>
00016 
00017 #ifdef HAVE_LAPACK
00018 
00019 #include <shogun/machine/LinearMachine.h>
00020 
00021 namespace shogun
00022 {
00040 class CLeastSquaresRegression : public CLinearRidgeRegression
00041 {
00042     public:
00044         MACHINE_PROBLEM_TYPE(PT_REGRESSION);
00045 
00047         CLeastSquaresRegression();
00048 
00054         CLeastSquaresRegression(CDenseFeatures<float64_t>* data, CLabels* lab);
00055         virtual ~CLeastSquaresRegression() {}
00056 
00061         virtual EMachineType get_classifier_type()
00062         {
00063             return CT_LEASTSQUARESREGRESSION;
00064         }
00065 
00067         virtual const char* get_name() const { return "LeastSquaresRegression"; }
00068 
00069     private:
00070         void init();
00071 };
00072 }
00073 #endif // HAVE_LAPACK
00074 #endif // _LEASTSQUARESREGRESSION_H__
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation