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 #include "features/Features.h" 00019 00020 namespace shogun 00021 { 00026 class CGMNPSVM : public CMultiClassSVM 00027 { 00028 public: 00030 CGMNPSVM(); 00031 00038 CGMNPSVM(float64_t C, CKernel* k, CLabels* lab); 00039 00041 virtual ~CGMNPSVM(); 00042 00051 virtual bool train(CFeatures* data=NULL); 00052 00057 virtual inline EClassifierType get_classifier_type() { return CT_GMNPSVM; } 00058 00065 void getbasealphas(::std::vector< ::std::vector<float64_t> > & basealphas); 00066 00068 inline virtual const char* get_name() const { return "GMNPSVM"; } 00069 00070 protected: 00076 ::std::vector< ::std::vector<float64_t> > m_basealphas; // is the basic untransformed alpha, needed for MKL 00077 }; 00078 } 00079 #endif