SHOGUN
v3.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
classifier
mkl
MKLOneClass.cpp
Go to the documentation of this file.
1
#include <
shogun/classifier/mkl/MKLOneClass.h
>
2
#include <
shogun/classifier/svm/LibSVMOneClass.h
>
3
4
using namespace
shogun;
5
6
CMKLOneClass::CMKLOneClass
(
CSVM
* s) :
CMKL
(s)
7
{
8
if
(!s)
9
set_svm
(
new
CLibSVMOneClass
());
10
}
11
12
CMKLOneClass::~CMKLOneClass
()
13
{
14
}
15
16
float64_t
CMKLOneClass::compute_sum_alpha
()
17
{
18
return
0.0;
19
}
20
21
void
CMKLOneClass::init_training
()
22
{
23
ASSERT
(
svm
)
24
ASSERT
(
svm
->
get_classifier_type
() ==
CT_LIBSVMONECLASS
)
25
}
SHOGUN
Machine Learning Toolbox - Documentation