SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
CScatterSVM Class Reference

Detailed Description

ScatterSVM - Multiclass SVM.

The ScatterSVM is an unpublished experimental true multiclass SVM. Details are availabe in the following technical report.

This code is currently experimental.

Robert Jenssen and Marius Kloft and Alexander Zien and S"oren Sonnenburg and Klaus-Robert M"{u}ller, A Multi-Class Support Vector Machine Based on Scatter Criteria, TR 014-2009 TU Berlin, 2009

Definition at line 50 of file ScatterSVM.h.

Inheritance diagram for CScatterSVM:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CScatterSVM ()
 CScatterSVM (SCATTER_TYPE type)
 CScatterSVM (float64_t C, CKernel *k, CLabels *lab)
virtual ~CScatterSVM ()
virtual EClassifierType get_classifier_type ()
virtual float64_t apply (int32_t num)
virtual CLabelsclassify_one_vs_rest ()
virtual const char * get_name () const

Protected Member Functions

virtual bool train_machine (CFeatures *data=NULL)

Protected Attributes

SCATTER_TYPE scatter_type
svm_problem problem
svm_parameter param
struct svm_model * model
float64_tnorm_wc
float64_tnorm_wcw
float64_t rho
int32_t m_num_classes

Constructor & Destructor Documentation

default constructor

Definition at line 20 of file ScatterSVM.cpp.

constructor

Definition at line 27 of file ScatterSVM.cpp.

CScatterSVM ( float64_t  C,
CKernel k,
CLabels lab 
)

constructor (using NO_BIAS as default scatter_type)

Parameters:
Cconstant C
kkernel
lablabels

Definition at line 33 of file ScatterSVM.cpp.

~CScatterSVM ( ) [virtual]

default destructor

Definition at line 39 of file ScatterSVM.cpp.


Member Function Documentation

float64_t apply ( int32_t  num) [virtual]

classify one example

Parameters:
numnumber of example to classify
Returns:
resulting classification

Reimplemented from CMultiClassSVM.

Definition at line 406 of file ScatterSVM.cpp.

CLabels * classify_one_vs_rest ( ) [virtual]

classify one vs rest

Returns:
resulting labels

Reimplemented from CMultiClassSVM.

Definition at line 339 of file ScatterSVM.cpp.

virtual EClassifierType get_classifier_type ( ) [virtual]

get classifier type

Returns:
classifier type LIBSVM

Reimplemented from CMachine.

Definition at line 74 of file ScatterSVM.h.

virtual const char* get_name ( ) const [virtual]
Returns:
object name

Reimplemented from CSVM.

Definition at line 90 of file ScatterSVM.h.

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

train SVM classifier

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

Reimplemented from CMachine.

Definition at line 45 of file ScatterSVM.cpp.


Member Data Documentation

int32_t m_num_classes [protected]

number of classes

Reimplemented from CMultiClassSVM.

Definition at line 131 of file ScatterSVM.h.

struct svm_model* model [protected]

SVM model

Definition at line 119 of file ScatterSVM.h.

float64_t* norm_wc [protected]

norm of w_c

Definition at line 122 of file ScatterSVM.h.

float64_t* norm_wcw [protected]

norm of w_cw

Definition at line 125 of file ScatterSVM.h.

svm_parameter param [protected]

SVM param

Definition at line 116 of file ScatterSVM.h.

svm_problem problem [protected]

SVM problem

Definition at line 114 of file ScatterSVM.h.

float64_t rho [protected]

ScatterSVM rho

Definition at line 128 of file ScatterSVM.h.

type of scatter SVM

Definition at line 111 of file ScatterSVM.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