LibSVM.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-2009 Soeren Sonnenburg
00008  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #ifndef _LIBSVM_H___
00012 #define _LIBSVM_H___
00013 
00014 #include "lib/common.h"
00015 #include "classifier/svm/SVM.h"
00016 #include "classifier/svm/SVM_libsvm.h"
00017 
00018 #include <stdio.h>
00019 
00021 class CLibSVM : public CSVM
00022 {
00023     public:
00025         CLibSVM();
00032         CLibSVM(float64_t C, CKernel* k, CLabels* lab);
00033 
00034         virtual ~CLibSVM();
00035 
00037         virtual bool train();
00038 
00043         virtual inline EClassifierType get_classifier_type() { return CT_LIBSVM; }
00044 
00046         inline virtual const char* get_name() const { return "LibSVM"; }
00047     protected:
00049         svm_problem problem;
00051         svm_parameter param;
00052 
00054         struct svm_model* model;
00055 };
00056 #endif

SHOGUN Machine Learning Toolbox - Documentation