CSVM类参考
详细描述
A generic Support Vector Machine Interface.
A support vector machine is defined as
where
is the number of training examples
are the weights assigned to each training example
is the kernel and
the bias.
Using an a-priori choosen kernel, the
and bias are determined by solving the following quadratic program
here C is a pre-specified regularization parameter.
在文件SVM.h第46行定义。
所有成员的列表。
构造及析构函数文档
CSVM |
( |
int32_t |
num_sv = 0 |
) |
|
Create an empty Support Vector Machine Object
- 参数:
-
| num_sv | with num_sv support vectors |
在文件SVM.cpp第31行定义。
Create a Support Vector Machine Object from a trained SVM
- 参数:
-
| C | the C parameter |
| k | the Kernel object |
| lab | the Label object |
在文件SVM.cpp第37行定义。
成员函数文档
compute svm dual objective
- 返回:
- computed dual objective
在文件SVM.cpp第223行定义。
compute svm primal objective
- 返回:
- computed svm primal objective
在文件SVM.cpp第248行定义。
std::vector< float64_t > get_linear_term |
( |
|
) |
[virtual] |
get linear term
- 返回:
- lin the linear term
在文件SVM.cpp第305行定义。
float64_t * get_linear_term_array |
( |
|
) |
[protected, virtual] |
get linear term copy as dynamic array
- 返回:
- linear term copied to a dynamic array
在文件SVM.cpp第275行定义。
virtual const char* get_name |
( |
|
) |
const [virtual] |
get objective
- 返回:
- objective
在文件SVM.h第202行定义。
bool get_shrinking_enabled |
( |
|
) |
|
get state of shrinking
- 返回:
- if shrinking is enabled
在文件SVM.h第172行定义。
bool load |
( |
FILE * |
svm_file |
) |
[virtual] |
bool save |
( |
FILE * |
svm_file |
) |
[virtual] |
set C
- 参数:
-
| c1 | new C constant for negatively labelled examples |
| c2 | new C constant for positively labelled examples |
Note that not all SVMs support this (however at least CLibSVM and CSVMLight do)
在文件SVM.h第109行定义。
set callback function svm optimizers may call when they have a new (small) set of alphas
- 参数:
-
| m | pointer to mkl object |
| cb | callback function |
在文件SVM.cpp第213行定义。
void set_defaults |
( |
int32_t |
num_sv = 0 |
) |
|
set default values for members a SVM object
在文件SVM.cpp第51行定义。
void set_linear_term |
( |
std::vector< float64_t > |
lin |
) |
[virtual] |
void set_qpsize |
( |
int32_t |
qps |
) |
|
void set_shrinking_enabled |
( |
bool |
enable |
) |
|
set state of shrinking
- 参数:
-
| enable | if shrinking will be enabled |
在文件SVM.h第163行定义。
成员数据文档
C1 regularization const
在文件SVM.h第299行定义。
callback function svm optimizers may call when they have a new (small) set of alphas
mkl object that svm optimizers need to pass when calling the callback function
在文件SVM.h第314行定义。
tube epsilon for support vector regression
在文件SVM.h第295行定义。
if shrinking shall be used
在文件SVM.h第307行定义。
该类的文档由以下文件生成: