SHOGUN
v3.2.0
|
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) 2009 Soeren Sonnenburg 00008 * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 #ifndef __MKLONECLASS_H__ 00011 #define __MKLONECLASS_H__ 00012 00013 #include <shogun/lib/common.h> 00014 #include <shogun/classifier/mkl/MKL.h> 00015 00016 namespace shogun 00017 { 00025 class CMKLOneClass : public CMKL 00026 { 00027 public: 00032 CMKLOneClass(CSVM* s=NULL); 00033 00036 virtual ~CMKLOneClass(); 00037 00041 virtual float64_t compute_sum_alpha(); 00042 00044 virtual const char* get_name() const { return "MKLOneClass"; } 00045 00046 protected: 00050 virtual void init_training(); 00051 00056 virtual EMachineType get_classifier_type() { return CT_MKLONECLASS; } 00057 }; 00058 } 00059 #endif //__MKLONECLASS_H__