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 c1, float64_t c2)
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

参数:
type a E_SVM_TYPE

在文件SVMOcas.cpp24行定义。

CSVMOcas ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

constructor

参数:
C constant C
traindat training features
trainlab labels 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_H new col H
new_cut new cut
cut_length length of cut
nSel nSel
ptr ptr

在文件SVMOcas.cpp176行定义。

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

compute output

参数:
output output
ptr ptr

在文件SVMOcas.cpp258行定义。

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_W square normed W
dp_WoldW dp W old W
alpha alpha
nSel nSel
ptr ptr

在文件SVMOcas.cpp283行定义。

bool get_bias_enabled (  ) 

check if bias is enabled

返回:
if bias is enabled

在文件SVMOcas.h106行定义。

int32_t get_bufsize (  ) 

get buffer size

返回:
buffer size

在文件SVMOcas.h118行定义。

float64_t get_C1 (  ) 

get C1

返回:
C1

在文件SVMOcas.h76行定义。

float64_t get_C2 (  ) 

get C2

返回:
C2

在文件SVMOcas.h82行定义。

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

返回:
classifier type SVMOCAS

重载CClassifier

在文件SVMOcas.h53行定义。

float64_t get_epsilon (  ) 

get epsilon

返回:
epsilon

在文件SVMOcas.h94行定义。

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

实现了CSGObject

在文件SVMOcas.h169行定义。

void set_bias_enabled ( bool  enable_bias  ) 

set if bias shall be enabled

参数:
enable_bias if bias shall be enabled

在文件SVMOcas.h100行定义。

void set_bufsize ( int32_t  sz  ) 

set buffer size

参数:
sz buffer size

在文件SVMOcas.h112行定义。

void set_C ( float64_t  c1,
float64_t  c2 
)

set C

参数:
c1 new C1
c2 new C2

在文件SVMOcas.h70行定义。

void set_epsilon ( float64_t  eps  ) 

set epsilon

参数:
eps new epsilon

在文件SVMOcas.h88行定义。

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

sort

参数:
vals vals
idx idx
size size

在文件SVMOcas.cpp248行定义。

bool train ( CFeatures data = NULL  )  [virtual]

train SVM classifier

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

重载CClassifier

在文件SVMOcas.cpp49行定义。

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

update W

参数:
t t
ptr ptr
返回:
something floaty

在文件SVMOcas.cpp149行定义。


成员数据文档

int32_t bufsize [protected]

buffer size

在文件SVMOcas.h175行定义。

float64_t C1 [protected]

C1

在文件SVMOcas.h177行定义。

float64_t C2 [protected]

C2

在文件SVMOcas.h179行定义。

float64_t* cp_bias [protected]

bias dimensions

在文件SVMOcas.h202行定义。

uint32_t** cp_index [protected]

cutting plane index

在文件SVMOcas.h198行定义。

uint32_t* cp_nz_dims [protected]

cutting plane dimensions

在文件SVMOcas.h200行定义。

float64_t** cp_value [protected]

sparse representation of cutting planes

在文件SVMOcas.h196行定义。

float64_t epsilon [protected]

epsilon

在文件SVMOcas.h181行定义。

float64_t* lab [protected]

labels

在文件SVMOcas.h192行定义。

E_SVM_TYPE method [protected]

method

在文件SVMOcas.h183行定义。

float64_t old_bias [protected]

old bias

在文件SVMOcas.h188行定义。

float64_t* old_w [protected]

old W

在文件SVMOcas.h186行定义。

float64_t* tmp_a_buf [protected]

nDim big

在文件SVMOcas.h190行定义。

bool use_bias [protected]

if bias is used

在文件SVMOcas.h173行定义。


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

SHOGUN Machine Learning Toolbox - Documentation