详细描述
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第47行定义。
所有成员的列表。
构造及析构函数文档
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第40行定义。
成员函数文档
compute svm dual objective
- 返回:
- computed dual objective
在文件SVM.cpp第229行定义。
compute svm primal objective
- 返回:
- computed svm primal objective
在文件SVM.cpp第254行定义。
std::vector< float64_t > get_linear_term |
( |
) |
[virtual] |
get linear term
- 返回:
- lin the linear term
在文件SVM.cpp第311行定义。
float64_t * get_linear_term_array |
( |
) |
[protected, virtual] |
get linear term copy as dynamic array
- 返回:
- linear term copied to a dynamic array
在文件SVM.cpp第281行定义。
virtual const char* get_name |
( |
) |
const [virtual] |
get objective
- 返回:
- objective
在文件SVM.h第211行定义。
bool get_shrinking_enabled |
( |
) |
|
get state of shrinking
- 返回:
- if shrinking is enabled
在文件SVM.h第181行定义。
get tube epsilon
- 返回:
- tube epsilon
在文件SVM.h第130行定义。
bool load |
( |
FILE * |
svm_file ) |
[virtual] |
bool save |
( |
FILE * |
svm_file ) |
[virtual] |
set C
- 参数:
-
c_neg | new C constant for negatively labeled examples |
c_pos | new C constant for positively labeled examples |
Note that not all SVMs support this (however at least CLibSVM and CSVMLight do)
在文件SVM.h第111行定义。
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第219行定义。
void set_defaults |
( |
int32_t |
num_sv = 0 ) |
|
set default values for members a SVM object
在文件SVM.cpp第57行定义。
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第172行定义。
成员数据文档
C1 regularization const
在文件SVM.h第308行定义。
callback function svm optimizers may call when they have a new (small) set of alphas
在文件SVM.h第320行定义。
mkl object that svm optimizers need to pass when calling the callback function
在文件SVM.h第323行定义。
tube epsilon for support vector regression
在文件SVM.h第304行定义。
if shrinking shall be used
在文件SVM.h第316行定义。
该类的文档由以下文件生成: