SHOGUN v0.9.0
|
公有成员 | |
CSVMOcas (void) | |
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 int | add_new_cut (float64_t *new_col_H, uint32_t *new_cut, uint32_t cut_length, uint32_t nSel, void *ptr) |
static int | compute_output (float64_t *output, void *ptr) |
static int | sort (float64_t *vals, float64_t *data, uint32_t size) |
static void | print (ocas_return_value_T value) |
保护属性 | |
bool | use_bias |
int32_t | bufsize |
float64_t | C1 |
float64_t | C2 |
float64_t | epsilon |
E_SVM_TYPE | method |
float64_t * | old_w |
float64_t | old_bias |
float64_t * | tmp_a_buf |
float64_t * | lab |
float64_t ** | cp_value |
uint32_t ** | cp_index |
uint32_t * | cp_nz_dims |
float64_t * | cp_bias |
CSVMOcas | ( | void | ) |
default constructor
在文件SVMOcas.cpp第24行定义。
CSVMOcas | ( | E_SVM_TYPE | type | ) |
CSVMOcas | ( | float64_t | C, |
CDotFeatures * | traindat, | ||
CLabels * | trainlab | ||
) |
constructor
C | constant C |
traindat | training features |
trainlab | labels for training features |
在文件SVMOcas.cpp第37行定义。
~CSVMOcas | ( | ) | [virtual] |
在文件SVMOcas.cpp第50行定义。
int 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.cpp第187行定义。
int compute_output | ( | float64_t * | output, |
void * | ptr | ||
) | [static, protected] |
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.cpp第300行定义。
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
virtual const char* get_name | ( | void | ) | const [protected, virtual] |
static void print | ( | ocas_return_value_T | value | ) | [static, protected] |
void set_bias_enabled | ( | bool | enable_bias | ) |
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) |
重载CClassifier。
在文件SVMOcas.cpp第54行定义。
uint32_t* cp_nz_dims [protected] |
E_SVM_TYPE method [protected] |