Skip to content

Commit

Permalink
+ return problem type in regression machines
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesias committed May 22, 2012
1 parent 29c5724 commit bfab371
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/shogun/regression/GaussianProcessRegression.h
Expand Up @@ -38,16 +38,17 @@ namespace shogun
class CGaussianProcessRegression : public CMachine
{
public:
MACHINE_PROBLEM_TYPE(PT_REGRESSION);

/** constructor
*
* @param sigma variance of the Gaussian observation noise
* @param k Kernel for covariance matrix
* @param data training data
* @param lab labels
*/
CGaussianProcessRegression(float64_t sigma, CKernel* k,
CDenseFeatures<float64_t>* data, CLabels* lab);
/** constructor
*
* @param sigma variance of the Gaussian observation noise
* @param k Kernel for covariance matrix
* @param data training data
* @param lab labels
*/
CGaussianProcessRegression(float64_t sigma, CKernel* k,
CDenseFeatures<float64_t>* data, CLabels* lab);

/** default constructor */
CGaussianProcessRegression();
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/regression/KernelRidgeRegression.h
Expand Up @@ -64,6 +64,8 @@ enum ETrainingType
class CKernelRidgeRegression : public CKernelMachine
{
public:
MACHINE_PROBLEM_TYPE(PT_REGRESSION);

/** default constructor */
CKernelRidgeRegression();

Expand Down
2 changes: 2 additions & 0 deletions src/shogun/regression/LeastAngleRegression.h
Expand Up @@ -72,6 +72,8 @@ class CFeatures;
class CLeastAngleRegression: public CLinearMachine
{
public:
MACHINE_PROBLEM_TYPE(PT_REGRESSION);

/** default constructor
*
* @param lasso - when true, it runs the LASSO, when false, it runs LARS
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/regression/LeastSquaresRegression.h
Expand Up @@ -40,6 +40,8 @@ namespace shogun
class CLeastSquaresRegression : public CLinearRidgeRegression
{
public:
MACHINE_PROBLEM_TYPE(PT_REGRESSION);

/** default constructor */
CLeastSquaresRegression();

Expand Down
2 changes: 2 additions & 0 deletions src/shogun/regression/LinearRidgeRegression.h
Expand Up @@ -42,6 +42,8 @@ namespace shogun
class CLinearRidgeRegression : public CLinearMachine
{
public:
MACHINE_PROBLEM_TYPE(PT_REGRESSION);

/** default constructor */
CLinearRidgeRegression();

Expand Down
2 changes: 2 additions & 0 deletions src/shogun/regression/svr/LibSVR.h
Expand Up @@ -51,6 +51,8 @@ namespace shogun
class CLibSVR : public CSVM
{
public:
MACHINE_PROBLEM_TYPE(PT_REGRESSION);

/** default constructor */
CLibSVR();

Expand Down
2 changes: 2 additions & 0 deletions src/shogun/regression/svr/MKLRegression.h
Expand Up @@ -25,6 +25,8 @@ namespace shogun
class CMKLRegression : public CMKL
{
public:
MACHINE_PROBLEM_TYPE(PT_REGRESSION);

/** Constructor
*
* @param s SVM to use as constraint generator in MKL SILP
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/regression/svr/SVRLight.h
Expand Up @@ -62,6 +62,8 @@ namespace shogun
class CSVRLight: public CSVMLight
{
public:
MACHINE_PROBLEM_TYPE(PT_REGRESSION);

/** default constructor */
CSVRLight();

Expand Down

0 comments on commit bfab371

Please sign in to comment.