SVMLightOneClass.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) 2010 Soeren Sonnenburg
00008  * Copyright (C) 2010 Berlin Institute of Technology
00009  */
00010 
00011 #ifndef _SVMLIGHTONECLASS_H___
00012 #define _SVMLIGHTONECLASS_H___
00013 
00014 #include <shogun/lib/config.h>
00015 #include <shogun/machine/Machine.h>
00016 
00017 #ifdef USE_SVMLIGHT
00018 #include <shogun/classifier/svm/SVMLight.h>
00019 #endif //USE_SVMLIGHT
00020 
00021 #ifdef USE_SVMLIGHT
00022 namespace shogun
00023 {
00028 class CSVMLightOneClass: public CSVMLight
00029 {
00030     public:
00032         CSVMLightOneClass();
00033 
00039         CSVMLightOneClass(float64_t C, CKernel* k);
00040 
00042         virtual ~CSVMLightOneClass() { }
00043 
00048         virtual EMachineType get_classifier_type() { return CT_LIGHTONECLASS; }
00049 
00050     protected:
00059         virtual bool train_machine(CFeatures* data=NULL);
00060 };
00061 }
00062 #endif //USE_SVMLIGHT
00063 #endif // _SVMLIGHTONECLASS_H___
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation