MKLOneClass.cpp

Go to the documentation of this file.
00001 #include <shogun/classifier/mkl/MKLOneClass.h>
00002 #include <shogun/classifier/svm/LibSVMOneClass.h>
00003 
00004 using namespace shogun;
00005 
00006 CMKLOneClass::CMKLOneClass(CSVM* s) : CMKL(s)
00007 {
00008     if (!s)
00009         set_svm(new CLibSVMOneClass());
00010 }
00011 
00012 CMKLOneClass::~CMKLOneClass()
00013 {
00014 }
00015 
00016 float64_t CMKLOneClass::compute_sum_alpha()
00017 {
00018     return 0.0;
00019 }
00020 
00021 void CMKLOneClass::init_training()
00022 {
00023     ASSERT(svm);
00024     ASSERT(svm->get_classifier_type() == CT_LIBSVMONECLASS);
00025 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation