class WDSVMOcas
在文件WDSVMOcas.h第26行定义。
CWDSVMOcas | ( | E_SVM_TYPE | type | ) |
CWDSVMOcas | ( | float64_t | C, | |
int32_t | d, | |||
int32_t | from_d, | |||
CStringFeatures< uint8_t > * | traindat, | |||
CLabels * | trainlab | |||
) |
constructor
C | constant C | |
d | degree | |
from_d | from degree | |
traindat | training features | |
trainlab | labels for training features |
在文件WDSVMOcas.cpp第62行定义。
~CWDSVMOcas | ( | ) | [virtual] |
在文件WDSVMOcas.cpp第79行定义。
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 |
在文件WDSVMOcas.cpp第329行定义。
void * add_new_cut_helper | ( | void * | ptr | ) | [static, protected] |
classify objects
data | (test)data to be classified |
实现了CClassifier。
在文件WDSVMOcas.cpp第105行定义。
CLabels * classify | ( | ) | [virtual] |
virtual float64_t classify_example | ( | int32_t | num | ) | [virtual] |
classify one example
num | number of example to classify |
重载CClassifier。
在文件WDSVMOcas.h第176行定义。
void compute_output | ( | float64_t * | output, | |
void * | ptr | |||
) | [static, protected] |
void * compute_output_helper | ( | 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 |
在文件WDSVMOcas.cpp第586行定义。
bool get_bias_enabled | ( | ) |
int32_t get_bufsize | ( | ) |
float64_t get_C1 | ( | ) |
float64_t get_C2 | ( | ) |
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
int32_t get_degree | ( | ) |
float64_t get_epsilon | ( | ) |
CStringFeatures<uint8_t>* get_features | ( | ) |
virtual const char* get_name | ( | ) | const [protected, virtual] |
float64_t get_normalization_const | ( | ) |
void set_bias_enabled | ( | bool | enable_bias | ) |
void set_bufsize | ( | int32_t | sz | ) |
set C
c_neg | new C constant for negatively labeled examples | |
c_pos | new C constant for positively labeled examples |
在文件WDSVMOcas.h第70行定义。
void set_degree | ( | int32_t | d, | |
int32_t | from_d | |||
) |
void set_epsilon | ( | float64_t | eps | ) |
void set_features | ( | CStringFeatures< uint8_t > * | feat | ) |
void set_normalization_const | ( | ) |
set normalization const
在文件WDSVMOcas.h第205行定义。
int32_t set_wd_weights | ( | ) | [protected] |
void sort | ( | float64_t * | vals, | |
uint32_t * | idx, | |||
uint32_t | size | |||
) | [static, protected] |
bool train | ( | CFeatures * | data = NULL |
) | [virtual] |
train 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。
在文件WDSVMOcas.cpp第138行定义。
int32_t alphabet_size [protected] |
size of alphabet
在文件WDSVMOcas.h第321行定义。
bias
在文件WDSVMOcas.h第327行定义。
int32_t bufsize [protected] |
buffer size
在文件WDSVMOcas.h第300行定义。
C1
在文件WDSVMOcas.h第302行定义。
C2
在文件WDSVMOcas.h第304行定义。
bias dimensions
在文件WDSVMOcas.h第346行定义。
cuts
在文件WDSVMOcas.h第344行定义。
int32_t degree [protected] |
degree
在文件WDSVMOcas.h第311行定义。
epsilon
在文件WDSVMOcas.h第306行定义。
CStringFeatures<uint8_t>* features [protected] |
features
在文件WDSVMOcas.h第296行定义。
int32_t from_degree [protected] |
from degree
在文件WDSVMOcas.h第313行定义。
labels
在文件WDSVMOcas.h第341行定义。
E_SVM_TYPE method [protected] |
method
在文件WDSVMOcas.h第308行定义。
float64_t normalization_const [protected] |
normalization const
在文件WDSVMOcas.h第324行定义。
int32_t num_vec [protected] |
num vectors
在文件WDSVMOcas.h第317行定义。
old_bias
在文件WDSVMOcas.h第329行定义。
old w
在文件WDSVMOcas.h第339行定义。
int32_t string_length [protected] |
length of string in vector
在文件WDSVMOcas.h第319行定义。
bool use_bias [protected] |
if bias shall be used
在文件WDSVMOcas.h第298行定义。
w
在文件WDSVMOcas.h第337行定义。
int32_t w_dim [protected] |
w dim
在文件WDSVMOcas.h第333行定义。
int32_t w_dim_single_char [protected] |
w dim of a single char
在文件WDSVMOcas.h第335行定义。
int32_t* w_offsets [protected] |
w offsets
在文件WDSVMOcas.h第331行定义。
float32_t* wd_weights [protected] |
wd weights
在文件WDSVMOcas.h第315行定义。