公有成员 | 保护成员 | 静态保护成员 | 保护属性

CSVMOcas类参考


详细描述

class SVMOcas

在文件SVMOcas.h29行定义。

继承图,类CSVMOcas
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CSVMOcas (E_SVM_TYPE type)
 CSVMOcas (float64_t C, CDotFeatures *traindat, CLabels *trainlab)
virtual ~CSVMOcas ()
virtual EClassifierType get_classifier_type ()
virtual bool train (CFeatures *data=NULL)
void set_C (float64_t c_neg, float64_t c_pos)
float64_t get_C1 ()
float64_t get_C2 ()
void set_epsilon (float64_t eps)
float64_t get_epsilon ()
void set_bias_enabled (bool enable_bias)
bool get_bias_enabled ()
void set_bufsize (int32_t sz)
int32_t get_bufsize ()

保护成员

virtual const char * get_name () const

静态保护成员

static void compute_W (float64_t *sq_norm_W, float64_t *dp_WoldW, float64_t *alpha, uint32_t nSel, void *ptr)
static float64_t update_W (float64_t t, void *ptr)
static void add_new_cut (float64_t *new_col_H, uint32_t *new_cut, uint32_t cut_length, uint32_t nSel, void *ptr)
static void compute_output (float64_t *output, void *ptr)
static void sort (float64_t *vals, uint32_t *idx, uint32_t size)

保护属性

bool use_bias
int32_t bufsize
float64_t C1
float64_t C2
float64_t epsilon
E_SVM_TYPE method
float64_told_w
float64_t old_bias
float64_ttmp_a_buf
float64_tlab
float64_t ** cp_value
uint32_t ** cp_index
uint32_t * cp_nz_dims
float64_tcp_bias

构造及析构函数文档

CSVMOcas ( E_SVM_TYPE  type )

constructor

参数:
typea E_SVM_TYPE

在文件SVMOcas.cpp24行定义。

CSVMOcas ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

constructor

参数:
Cconstant C
traindattraining features
trainlablabels for training features

在文件SVMOcas.cpp32行定义。

~CSVMOcas (  ) [virtual]

在文件SVMOcas.cpp45行定义。


成员函数文档

void add_new_cut ( float64_t new_col_H,
uint32_t *  new_cut,
uint32_t  cut_length,
uint32_t  nSel,
void *  ptr 
) [static, protected]

add new cut

参数:
new_col_Hnew col H
new_cutnew cut
cut_lengthlength of cut
nSelnSel
ptrptr

在文件SVMOcas.cpp179行定义。

void compute_output ( float64_t output,
void *  ptr 
) [static, protected]

compute output

参数:
outputoutput
ptrptr

在文件SVMOcas.cpp264行定义。

void compute_W ( float64_t sq_norm_W,
float64_t dp_WoldW,
float64_t alpha,
uint32_t  nSel,
void *  ptr 
) [static, protected]

compute W

参数:
sq_norm_Wsquare normed W
dp_WoldWdp W old W
alphaalpha
nSelnSel
ptrptr

在文件SVMOcas.cpp289行定义。

bool get_bias_enabled (  )

check if bias is enabled

返回:
if bias is enabled

在文件SVMOcas.h107行定义。

int32_t get_bufsize (  )

get buffer size

返回:
buffer size

在文件SVMOcas.h119行定义。

float64_t get_C1 (  )

get C1

返回:
C1

在文件SVMOcas.h77行定义。

float64_t get_C2 (  )

get C2

返回:
C2

在文件SVMOcas.h83行定义。

virtual EClassifierType get_classifier_type (  ) [virtual]

get classifier type

返回:
classifier type SVMOCAS

重载CClassifier

在文件SVMOcas.h53行定义。

float64_t get_epsilon (  )

get epsilon

返回:
epsilon

在文件SVMOcas.h95行定义。

virtual const char* get_name (  ) const [protected, virtual]
返回:
object name

实现了CSGObject

在文件SVMOcas.h170行定义。

void set_bias_enabled ( bool  enable_bias )

set if bias shall be enabled

参数:
enable_biasif bias shall be enabled

在文件SVMOcas.h101行定义。

void set_bufsize ( int32_t  sz )

set buffer size

参数:
szbuffer size

在文件SVMOcas.h113行定义。

void set_C ( float64_t  c_neg,
float64_t  c_pos 
)

set C

参数:
c_negnew C constant for negatively labeled examples
c_posnew C constant for positively labeled examples

在文件SVMOcas.h71行定义。

void set_epsilon ( float64_t  eps )

set epsilon

参数:
epsnew epsilon

在文件SVMOcas.h89行定义。

void sort ( float64_t vals,
uint32_t *  idx,
uint32_t  size 
) [static, protected]

sort

参数:
valsvals
idxidx
sizesize

在文件SVMOcas.cpp254行定义。

bool train ( CFeatures data = NULL ) [virtual]

train SVM classifier

参数:
datatraining 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

重载CClassifier

在文件SVMOcas.cpp49行定义。

float64_t update_W ( float64_t  t,
void *  ptr 
) [static, protected]

update W

参数:
tt
ptrptr
返回:
something floaty

在文件SVMOcas.cpp152行定义。


成员数据文档

int32_t bufsize [protected]

buffer size

在文件SVMOcas.h176行定义。

float64_t C1 [protected]

C1

在文件SVMOcas.h178行定义。

float64_t C2 [protected]

C2

在文件SVMOcas.h180行定义。

float64_t* cp_bias [protected]

bias dimensions

在文件SVMOcas.h203行定义。

uint32_t** cp_index [protected]

cutting plane index

在文件SVMOcas.h199行定义。

uint32_t* cp_nz_dims [protected]

cutting plane dimensions

在文件SVMOcas.h201行定义。

float64_t** cp_value [protected]

sparse representation of cutting planes

在文件SVMOcas.h197行定义。

float64_t epsilon [protected]

epsilon

在文件SVMOcas.h182行定义。

float64_t* lab [protected]

labels

在文件SVMOcas.h193行定义。

E_SVM_TYPE method [protected]

method

在文件SVMOcas.h184行定义。

float64_t old_bias [protected]

old bias

在文件SVMOcas.h189行定义。

float64_t* old_w [protected]

old W

在文件SVMOcas.h187行定义。

float64_t* tmp_a_buf [protected]

nDim big

在文件SVMOcas.h191行定义。

bool use_bias [protected]

if bias is used

在文件SVMOcas.h174行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation