LibSVR.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  * Written (W) 1999-2008 Soeren Sonnenburg
00008  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #ifndef _LIBSVR_H___
00012 #define _LIBSVR_H___
00013 
00014 #include <stdio.h>
00015 
00016 #include "lib/common.h"
00017 #include "classifier/svm/SVM.h"
00018 #include "classifier/svm/SVM_libsvm.h"
00019 #include "regression/Regression.h"
00020 
00021 
00048 class CLibSVR : public CSVM
00049 {
00050     public:
00052         CLibSVR();
00053 
00061         CLibSVR(float64_t C, float64_t epsilon, CKernel* k, CLabels* lab);
00062         virtual ~CLibSVR();
00063 
00068         virtual bool train();
00069 
00074         virtual inline EClassifierType get_classifier_type() { return CT_LIBSVR; }
00075 
00076     protected:
00078         svm_problem problem;
00080         svm_parameter param;
00081 
00083         struct svm_model* model;
00084 };
00085 #endif
00086 

SHOGUN Machine Learning Toolbox - Documentation