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) 2010 Soeren Sonnenburg 00008 * Copyright (C) 2010 Berlin Institute of Technology 00009 */ 00010 00011 #ifndef _SVMLIGHTONECLASS_H___ 00012 #define _SVMLIGHTONECLASS_H___ 00013 00014 #include "lib/config.h" 00015 #include "classifier/Classifier.h" 00016 00017 #ifdef USE_SVMLIGHT 00018 #include "classifier/svm/SVMLight.h" 00019 #endif //USE_SVMLIGHT 00020 00021 #ifdef USE_SVMLIGHT 00022 namespace shogun 00023 { 00028 #define IGNORE_IN_CLASSLIST 00029 IGNORE_IN_CLASSLIST class CSVMLightOneClass: public CSVMLight 00030 { 00031 public: 00033 CSVMLightOneClass(); 00034 00040 CSVMLightOneClass(float64_t C, CKernel* k); 00041 00043 virtual ~CSVMLightOneClass() { } 00044 00053 virtual bool train(CFeatures* data=NULL); 00054 00059 virtual inline EClassifierType get_classifier_type() { return CT_LIGHTONECLASS; } 00060 }; 00061 } 00062 #endif //USE_SVMLIGHT 00063 #endif // _SVMLIGHTONECLASS_H___