The AUC kernel can be used to maximize the area under the receiver operator characteristic curve (AUC) instead of margin in SVM training.
It takes as argument a sub-kernel and Labels based on which number of positive labels times number of negative labels many ``virtual'' examples are created that ensure that all positive examples get a higher score than all negative examples in training.
在文件AUCKernel.h第33行定义。
公有成员 | |
CAUCKernel (int32_t size, CKernel *subkernel) | |
virtual | ~CAUCKernel () |
CLabels * | setup_auc_maximization (CLabels *labels) |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () const |
保护成员 | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
保护属性 | |
CKernel * | subkernel |
CAUCKernel | ( | int32_t | size, |
CKernel * | subkernel | ||
) |
~CAUCKernel | ( | ) | [virtual] |
destructor
在文件AUCKernel.cpp第26行定义。
float64_t 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 |
实现了CKernel。
在文件AUCKernel.cpp第119行定义。
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
virtual const char* get_name | ( | ) | const [virtual] |
initialize kernel
l | features of left-hand side |
r | features of right-hand side |
在文件AUCKernel.cpp第112行定义。
initialize kernel based on current labeling and subkernel
labels | - current labeling |
在文件AUCKernel.cpp第32行定义。
the subkernel
在文件AUCKernel.h第87行定义。