SHOGUN v0.9.0
|
公有成员 | |
CLinearKernel () | |
CLinearKernel (CDotFeatures *l, CDotFeatures *r) | |
virtual | ~CLinearKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual void | cleanup () |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () const |
virtual bool | init_optimization (int32_t num_suppvec, int32_t *sv_idx, float64_t *alphas) |
virtual bool | delete_optimization () |
virtual float64_t | compute_optimized (int32_t idx) |
virtual void | clear_normal () |
virtual void | add_to_normal (int32_t idx, float64_t weight) |
const float64_t * | get_normal (int32_t &len) |
void | get_w (float64_t **dst_w, int32_t *dst_dims) |
void | set_w (float64_t *src_w, int32_t src_w_dim) |
保护属性 | |
float64_t * | normal |
int32_t | normal_length |
CLinearKernel | ( | ) |
constructor
在文件LinearKernel.cpp第20行定义。
CLinearKernel | ( | CDotFeatures * | l, |
CDotFeatures * | r | ||
) |
~CLinearKernel | ( | ) | [virtual] |
在文件LinearKernel.cpp第33行定义。
void add_to_normal | ( | int32_t | idx, |
float64_t | weight | ||
) | [virtual] |
void cleanup | ( | ) | [virtual] |
void clear_normal | ( | ) | [virtual] |
float64_t compute_optimized | ( | int32_t | idx | ) | [virtual] |
compute optimized
idx | index to compute |
重载CKernel。
在文件LinearKernel.cpp第95行定义。
bool delete_optimization | ( | ) | [virtual] |
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | void | ) | const [virtual] |
const float64_t* get_normal | ( | int32_t & | len | ) |
get normal
len | where length of normal vector will be stored |
在文件LinearKernel.h第109行定义。
void get_w | ( | float64_t ** | dst_w, |
int32_t * | dst_dims | ||
) |
get normal vector (swig compatible)
dst_w | store w in this argument |
dst_dims | dimension of w |
在文件LinearKernel.h第128行定义。
initialize kernel
l | features of left-hand side |
r | features of right-hand side |
重载CDotKernel。
在文件LinearKernel.cpp第38行定义。
bool init_optimization | ( | int32_t | num_suppvec, |
int32_t * | sv_idx, | ||
float64_t * | alphas | ||
) | [virtual] |
optimizable kernel, i.e. precompute normal vector and as phi(x) = x do scalar product in input space
num_suppvec | number of support vectors |
sv_idx | support vector index |
alphas | alphas |
重载CKernel。
在文件LinearKernel.cpp第73行定义。
void set_w | ( | float64_t * | src_w, |
int32_t | src_w_dim | ||
) |
set normal vector (swig compatible)
src_w | new w |
src_w_dim | dimension of new w - must fit dim of lhs |
在文件LinearKernel.h第144行定义。
normal vector (used in case of optimized kernel)
在文件LinearKernel.h第153行定义。
int32_t normal_length [protected] |
length of normal vector
在文件LinearKernel.h第155行定义。