Public Member Functions | Protected Member Functions | Protected Attributes

CLibSVMOneClass Class Reference

Detailed Description

class LibSVMOneClass

Definition at line 23 of file LibSVMOneClass.h.

Inheritance diagram for CLibSVMOneClass:
Inheritance graph

List of all members.

Public Member Functions

 CLibSVMOneClass ()
 CLibSVMOneClass (float64_t C, CKernel *k)
virtual ~CLibSVMOneClass ()
virtual EClassifierType get_classifier_type ()
virtual const char * get_name () const

Protected Member Functions

virtual bool train_machine (CFeatures *data=NULL)

Protected Attributes

svm_problem problem
svm_parameter param
struct svm_model * model

Constructor & Destructor Documentation

CLibSVMOneClass (  ) 

default constructor

Definition at line 17 of file LibSVMOneClass.cpp.

CLibSVMOneClass ( float64_t  C,
CKernel k 


C constant C
k kernel

Definition at line 22 of file LibSVMOneClass.cpp.

~CLibSVMOneClass (  )  [virtual]

Definition at line 27 of file LibSVMOneClass.cpp.

Member Function Documentation

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

classifier type LIBSVMONECLASS

Reimplemented from CMachine.

Definition at line 41 of file LibSVMOneClass.h.

virtual const char* get_name ( void   )  const [virtual]
object name

Reimplemented from CSVM.

Definition at line 44 of file LibSVMOneClass.h.

bool train_machine ( CFeatures data = NULL  )  [protected, virtual]

train SVM

data training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data)
whether training was successful

Reimplemented from CMachine.

Definition at line 32 of file LibSVMOneClass.cpp.

Member Data Documentation

struct svm_model* model [protected]

SVM model

Definition at line 64 of file LibSVMOneClass.h.

svm_parameter param [protected]

SVM parameter

Definition at line 61 of file LibSVMOneClass.h.

svm_problem problem [protected]

SVM problem

Definition at line 59 of file LibSVMOneClass.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation