GMNPSVM.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 Vojtech Franc, xfrancv@cmp.felk.cvut.cz
00008  * Copyright (C) 1999-2008 Center for Machine Perception, CTU FEL Prague 
00009  */
00010 
00011 #ifndef _GMNPSVM_H___
00012 #define _GMNPSVM_H___
00013 
00014 #include <vector>
00015 
00016 #include "lib/common.h"
00017 #include "classifier/svm/MultiClassSVM.h"
00018 
00023 class CGMNPSVM : public CMultiClassSVM
00024 {
00025     public:
00027         CGMNPSVM();
00028 
00035         CGMNPSVM(float64_t C, CKernel* k, CLabels* lab);
00036         virtual ~CGMNPSVM();
00037 
00039         virtual bool train();
00040 
00045         virtual inline EClassifierType get_classifier_type() { return CT_GMNPSVM; }
00046         
00047         void getbasealphas(::std::vector< ::std::vector<float64_t> > & basealphas2);
00048 
00050         inline virtual const char* get_name() const { return "GMNPSVM"; }
00051         
00052     protected: 
00053         ::std::vector< ::std::vector<float64_t> > basealphas; // is the basic untransformed alpha, needed for MKL 
00054         
00055 };
00056 #endif

SHOGUN Machine Learning Toolbox - Documentation