Public Member Functions | |
CAUCKernel (int32_t size, CKernel *subkernel) | |
CAUCKernel (CWordFeatures *l, CWordFeatures *r, CKernel *subkernel) | |
virtual | ~CAUCKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual bool | load_init (FILE *src) |
virtual bool | save_init (FILE *dest) |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
Protected Attributes | |
CKernel * | subkernel |
Definition at line 19 of file AUCKernel.h.
CAUCKernel::CAUCKernel | ( | int32_t | size, | |
CKernel * | subkernel | |||
) |
constructor
size | cache size | |
subkernel | the subkernel |
Definition at line 17 of file AUCKernel.cpp.
CAUCKernel::CAUCKernel | ( | CWordFeatures * | l, | |
CWordFeatures * | r, | |||
CKernel * | subkernel | |||
) |
constructor
l | features of left-hand side | |
r | features of right-hand side | |
subkernel | the subkernel |
Definition at line 22 of file AUCKernel.cpp.
CAUCKernel::~CAUCKernel | ( | ) | [virtual] |
Definition at line 28 of file AUCKernel.cpp.
float64_t CAUCKernel::compute | ( | int32_t | idx_a, | |
int32_t | idx_b | |||
) | [protected, virtual] |
compute kernel function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object
idx_a | index a | |
idx_b | index b |
Implements CKernel.
Definition at line 50 of file AUCKernel.cpp.
virtual EKernelType CAUCKernel::get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CKernel.
Definition at line 65 of file AUCKernel.h.
virtual const char* CAUCKernel::get_name | ( | ) | [virtual] |
return the kernel's name
Implements CKernel.
Definition at line 71 of file AUCKernel.h.
initialize kernel
l | features of left-hand side | |
r | features of right-hand side |
Reimplemented from CSimpleKernel< uint16_t >.
Definition at line 33 of file AUCKernel.cpp.
bool CAUCKernel::load_init | ( | FILE * | src | ) | [virtual] |
load kernel init_data
src | file to load from |
Implements CKernel.
Definition at line 40 of file AUCKernel.cpp.
bool CAUCKernel::save_init | ( | FILE * | dest | ) | [virtual] |
save kernel init_data
dest | file to save to |
Implements CKernel.
Definition at line 45 of file AUCKernel.cpp.
CKernel* CAUCKernel::subkernel [protected] |
the subkernel
Definition at line 86 of file AUCKernel.h.