SHOGUN v0.9.0
|
class to implement LibLinear
在文件LibLinear.h第47行定义。
CLibLinear | ( | void | ) |
default constructor
在文件LibLinear.cpp第25行定义。
CLibLinear | ( | LIBLINEAR_SOLVER_TYPE | liblinear_solver_type | ) |
CLibLinear | ( | float64_t | C, |
CDotFeatures * | traindat, | ||
CLabels * | trainlab | ||
) |
constructor (using L2R_L1LOSS_SVC_DUAL as default)
C | constant C |
traindat | training features |
trainlab | training labels |
在文件LibLinear.cpp第37行定义。
~CLibLinear | ( | ) | [virtual] |
destructor
在文件LibLinear.cpp第71行定义。
bool get_bias_enabled | ( | ) |
float64_t get_C1 | ( | ) |
float64_t get_C2 | ( | ) |
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
get classifier type
重载CClassifier。
被CDomainAdaptationSVMLinear重载。
在文件LibLinear.h第96行定义。
float64_t get_epsilon | ( | ) |
LIBLINEAR_SOLVER_TYPE get_liblinear_solver_type | ( | ) |
在文件LibLinear.h第72行定义。
void get_linear_term | ( | float64_t ** | linear_term, |
int32_t * | len | ||
) |
get the linear term for qp
在文件LibLinear.cpp第1146行定义。
int32_t get_max_iterations | ( | ) |
get the maximum number of iterations liblinear is allowed to do
在文件LibLinear.h第145行定义。
virtual const char* get_name | ( | void | ) | const [virtual] |
void init_linear_term | ( | ) |
set the linear term for qp
在文件LibLinear.cpp第1157行定义。
void set_bias_enabled | ( | bool | enable_bias | ) |
void set_epsilon | ( | float64_t | eps | ) |
void set_liblinear_solver_type | ( | LIBLINEAR_SOLVER_TYPE | st | ) |
在文件LibLinear.h第77行定义。
void set_linear_term | ( | float64_t * | linear_term, |
int32_t | len | ||
) |
set the linear term for qp
在文件LibLinear.h第157行定义。
void set_max_iterations | ( | int32_t | max_iter = 1000 | ) |
set the maximum number of iterations liblinear is allowed to do
在文件LibLinear.h第151行定义。
bool train | ( | CFeatures * | data = NULL | ) | [virtual] |
train linear SVM classifier
data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
重载CClassifier。
在文件LibLinear.cpp第76行定义。
C1
在文件LibLinear.h第194行定义。
C2
在文件LibLinear.h第196行定义。
epsilon
在文件LibLinear.h第200行定义。
LIBLINEAR_SOLVER_TYPE liblinear_solver_type [protected] |
solver type
在文件LibLinear.h第210行定义。
float64_t* m_linear_term [protected] |
precomputed linear term
在文件LibLinear.h第205行定义。
int32_t m_linear_term_len [protected] |
length of linear term
在文件LibLinear.h第207行定义。
int32_t max_iterations [protected] |
maximum number of iterations
在文件LibLinear.h第202行定义。
bool use_bias [protected] |
if bias shall be used
在文件LibLinear.h第198行定义。