SHOGUN
v2.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
svm
SVMLightOneClass.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* Written (W) 2010 Soeren Sonnenburg
8
* Copyright (C) 2010 Berlin Institute of Technology
9
*/
10
11
#ifndef _SVMLIGHTONECLASS_H___
12
#define _SVMLIGHTONECLASS_H___
13
14
#include <
shogun/lib/config.h
>
15
#include <
shogun/machine/Machine.h
>
16
17
#ifdef USE_SVMLIGHT
18
#include <
shogun/classifier/svm/SVMLight.h
>
19
#endif //USE_SVMLIGHT
20
21
#ifdef USE_SVMLIGHT
22
namespace
shogun
23
{
28
class
CSVMLightOneClass
:
public
CSVMLight
29
{
30
public
:
32
CSVMLightOneClass
();
33
39
CSVMLightOneClass
(
float64_t
C,
CKernel
* k);
40
42
virtual
~CSVMLightOneClass
() { }
43
48
virtual
inline
EMachineType
get_classifier_type
() {
return
CT_LIGHTONECLASS
; }
49
50
protected
:
59
virtual
bool
train_machine
(
CFeatures
* data=NULL);
60
};
61
}
62
#endif //USE_SVMLIGHT
63
#endif // _SVMLIGHTONECLASS_H___
SHOGUN
Machine Learning Toolbox - Documentation