yat  0.8.3pre
SvmMultiClass.h
00001 #ifndef _theplu_yat_classifier_svm_multi_class_
00002 #define _theplu_yat_classifier_svm_multi_class_
00003 
00004 // $Id: SvmMultiClass.h 1861 2009-03-12 12:05:46Z peter $
00005 
00006 /*
00007   Copyright (C) 2009 Peter Johansson
00008 
00009   This file is part of the yat library, http://dev.thep.lu.se/yat
00010 
00011   The yat library is free software; you can redistribute it and/or
00012   modify it under the terms of the GNU General Public License as
00013   published by the Free Software Foundation; either version 3 of the
00014   License, or (at your option) any later version.
00015 
00016   The yat library is distributed in the hope that it will be useful,
00017   but WITHOUT ANY WARRANTY; without even the implied warranty of
00018   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00019   General Public License for more details.
00020 
00021   You should have received a copy of the GNU General Public License
00022   along with yat. If not, see <http://www.gnu.org/licenses/>.
00023 */
00024 
00025 #include "SVM.h"
00026 
00027 #include <vector>
00028 
00029 namespace theplu {
00030 namespace yat {
00031 namespace utility {
00032   class Matrix;
00033 }
00034 namespace classifier {  
00035 
00036   class KernelLookup;
00037   class Target;
00038 
00044   class SvmMultiClass
00045   {
00046   public:
00050     SvmMultiClass(void);
00051 
00057     double C(void) const;
00058 
00065     SvmMultiClass* make_classifier(void) const;
00066 
00072     unsigned long int max_epochs(void) const;
00073     
00077     void max_epochs(unsigned long int);
00078     
00095     void predict(const KernelLookup& input, utility::Matrix& predict) const;
00096 
00100     void set_C(double);
00101 
00111     void train(const KernelLookup& kernel, const Target& target);
00112 
00113   private:
00114     SVM prototype_;
00115     std::vector<SVM> svm_;
00116 
00117     // Using compiler generated copy and assign
00118     //SvmMultiClass(const SvmMultiClass&);
00119     //SvmMultiClass& operator=(const SvmMultiClass&);
00120   };
00121 
00122 }}} // of namespace classifier, yat, and theplu
00123 
00124 #endif

Generated on Thu Dec 20 2012 03:12:57 for yat by  doxygen 1.8.0-20120409