SHOGUN v0.9.0
公有成员 | 保护成员 | 保护属性
CSubGradientLPM类参考

详细描述

在文件SubGradientLPM.h49行定义。

继承图,类CSubGradientLPM
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CSubGradientLPM ()
 CSubGradientLPM (float64_t C, CDotFeatures *traindat, CLabels *trainlab)
virtual ~CSubGradientLPM ()
virtual EClassifierType get_classifier_type ()
virtual bool train (CFeatures *data=NULL)
void set_C (float64_t c_neg, float64_t c_pos)
float64_t get_C1 ()
float64_t get_C2 ()
void set_bias_enabled (bool enable_bias)
bool get_bias_enabled ()
void set_epsilon (float64_t eps)
float64_t get_epsilon ()
void set_qpsize (int32_t q)
int32_t get_qpsize ()
void set_qpsize_max (int32_t q)
int32_t get_qpsize_max ()

保护成员

int32_t find_active (int32_t num_feat, int32_t num_vec, int32_t &num_active, int32_t &num_bound)
void update_active (int32_t num_feat, int32_t num_vec)
float64_t compute_objective (int32_t num_feat, int32_t num_vec)
 compute svm objective
float64_t compute_min_subgradient (int32_t num_feat, int32_t num_vec, int32_t num_active, int32_t num_bound)
float64_t line_search (int32_t num_feat, int32_t num_vec)
 performs a line search to determine step size
void compute_projection (int32_t num_feat, int32_t num_vec)
 compute projection
void update_projection (float64_t alpha, int32_t num_vec)
 only computes updates on the projection
void init (int32_t num_vec, int32_t num_feat)
 alloc helper arrays
void cleanup ()
 de-alloc helper arrays
virtual const char * get_name () const

保护属性

float64_t C1
float64_t C2
float64_t epsilon
float64_t work_epsilon
float64_t autoselected_epsilon
int32_t qpsize
int32_t qpsize_max
int32_t qpsize_limit
bool use_bias
int32_t last_it_noimprovement
int32_t num_it_noimprovement
uint8_t * active
uint8_t * old_active
int32_t * idx_active
int32_t * idx_bound
int32_t delta_active
int32_t delta_bound
float64_tproj
float64_ttmp_proj
int32_t * tmp_proj_idx
float64_tsum_CXy_active
float64_tv
float64_told_v
float64_t sum_Cy_active
int32_t pos_idx
int32_t neg_idx
int32_t zero_idx
int32_t * w_pos
int32_t * w_zero
int32_t * w_neg
float64_tgrad_w
float64_t grad_b
float64_tgrad_proj
float64_thinge_point
int32_t * hinge_idx
float64_tbeta
CCplexsolver
float64_t lpmtim

构造及析构函数文档

在文件SubGradientLPM.cpp29行定义。

CSubGradientLPM ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

在文件SubGradientLPM.cpp35行定义。

~CSubGradientLPM ( ) [virtual]

在文件SubGradientLPM.cpp45行定义。


成员函数文档

void cleanup ( ) [protected]

de-alloc helper arrays

在文件SubGradientLPM.cpp501行定义。

float64_t compute_min_subgradient ( int32_t  num_feat,
int32_t  num_vec,
int32_t  num_active,
int32_t  num_bound 
) [protected]

compute minimum norm subgradient return norm of minimum norm subgradient

在文件SubGradientLPM.cpp325行定义。

float64_t compute_objective ( int32_t  num_feat,
int32_t  num_vec 
) [protected]

compute svm objective

在文件SubGradientLPM.cpp411行定义。

void compute_projection ( int32_t  num_feat,
int32_t  num_vec 
) [protected]

compute projection

在文件SubGradientLPM.cpp424行定义。

int32_t find_active ( int32_t  num_feat,
int32_t  num_vec,
int32_t &  num_active,
int32_t &  num_bound 
) [protected]

returns number of changed constraints for precision work_epsilon and fills active array

在文件SubGradientLPM.cpp50行定义。

bool get_bias_enabled ( )

在文件SubGradientLPM.h82行定义。

float64_t get_C1 ( )

在文件SubGradientLPM.h78行定义。

float64_t get_C2 ( )

在文件SubGradientLPM.h79行定义。

virtual EClassifierType get_classifier_type ( ) [virtual]

get classifier type

返回:
classifier type NONE

重载CClassifier

在文件SubGradientLPM.h58行定义。

float64_t get_epsilon ( )

在文件SubGradientLPM.h85行定义。

virtual const char* get_name ( void  ) const [protected, virtual]
返回:
object name

重载CLinearClassifier

在文件SubGradientLPM.h129行定义。

int32_t get_qpsize ( )

在文件SubGradientLPM.h88行定义。

int32_t get_qpsize_max ( )

在文件SubGradientLPM.h91行定义。

void init ( int32_t  num_vec,
int32_t  num_feat 
) [protected]

alloc helper arrays

在文件SubGradientLPM.cpp435行定义。

float64_t line_search ( int32_t  num_feat,
int32_t  num_vec 
) [protected]

performs a line search to determine step size

在文件SubGradientLPM.cpp242行定义。

void set_bias_enabled ( bool  enable_bias)

在文件SubGradientLPM.h81行定义。

void set_C ( float64_t  c_neg,
float64_t  c_pos 
)

set C

参数:
c_negnew C constant for negatively labeled examples
c_posnew C constant for positively labeled examples

在文件SubGradientLPM.h76行定义。

void set_epsilon ( float64_t  eps)

在文件SubGradientLPM.h84行定义。

void set_qpsize ( int32_t  q)

在文件SubGradientLPM.h87行定义。

void set_qpsize_max ( int32_t  q)

在文件SubGradientLPM.h90行定义。

bool train ( CFeatures data = NULL) [virtual]

train classifier

参数:
datatraining data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data)
返回:
whether training was successful

重载CClassifier

在文件SubGradientLPM.cpp541行定义。

void update_active ( int32_t  num_feat,
int32_t  num_vec 
) [protected]

swaps the active / old_active and computes idx_active, idx_bound and sum_CXy_active arrays and the sum_Cy_active variable

在文件SubGradientLPM.cpp221行定义。

void update_projection ( float64_t  alpha,
int32_t  num_vec 
) [protected]

only computes updates on the projection

在文件SubGradientLPM.cpp430行定义。


成员数据文档

uint8_t* active [protected]

在文件SubGradientLPM.h146行定义。

在文件SubGradientLPM.h136行定义。

float64_t* beta [protected]

在文件SubGradientLPM.h176行定义。

float64_t C1 [protected]

在文件SubGradientLPM.h132行定义。

float64_t C2 [protected]

在文件SubGradientLPM.h133行定义。

int32_t delta_active [protected]

在文件SubGradientLPM.h150行定义。

int32_t delta_bound [protected]

在文件SubGradientLPM.h151行定义。

float64_t epsilon [protected]

在文件SubGradientLPM.h134行定义。

float64_t grad_b [protected]

在文件SubGradientLPM.h170行定义。

float64_t* grad_proj [protected]

在文件SubGradientLPM.h171行定义。

float64_t* grad_w [protected]

在文件SubGradientLPM.h169行定义。

int32_t* hinge_idx [protected]

在文件SubGradientLPM.h173行定义。

float64_t* hinge_point [protected]

在文件SubGradientLPM.h172行定义。

int32_t* idx_active [protected]

在文件SubGradientLPM.h148行定义。

int32_t* idx_bound [protected]

在文件SubGradientLPM.h149行定义。

int32_t last_it_noimprovement [protected]

在文件SubGradientLPM.h142行定义。

float64_t lpmtim [protected]

在文件SubGradientLPM.h179行定义。

int32_t neg_idx [protected]

在文件SubGradientLPM.h164行定义。

int32_t num_it_noimprovement [protected]

在文件SubGradientLPM.h143行定义。

uint8_t* old_active [protected]

在文件SubGradientLPM.h147行定义。

float64_t* old_v [protected]

在文件SubGradientLPM.h159行定义。

int32_t pos_idx [protected]

在文件SubGradientLPM.h163行定义。

float64_t* proj [protected]

在文件SubGradientLPM.h152行定义。

int32_t qpsize [protected]

在文件SubGradientLPM.h137行定义。

int32_t qpsize_limit [protected]

在文件SubGradientLPM.h139行定义。

int32_t qpsize_max [protected]

在文件SubGradientLPM.h138行定义。

CCplex* solver [protected]

在文件SubGradientLPM.h178行定义。

float64_t* sum_CXy_active [protected]

在文件SubGradientLPM.h157行定义。

float64_t sum_Cy_active [protected]

在文件SubGradientLPM.h160行定义。

float64_t* tmp_proj [protected]

在文件SubGradientLPM.h153行定义。

int32_t* tmp_proj_idx [protected]

在文件SubGradientLPM.h154行定义。

bool use_bias [protected]

在文件SubGradientLPM.h140行定义。

float64_t* v [protected]

在文件SubGradientLPM.h158行定义。

int32_t* w_neg [protected]

在文件SubGradientLPM.h168行定义。

int32_t* w_pos [protected]

在文件SubGradientLPM.h166行定义。

int32_t* w_zero [protected]

在文件SubGradientLPM.h167行定义。

float64_t work_epsilon [protected]

在文件SubGradientLPM.h135行定义。

int32_t zero_idx [protected]

在文件SubGradientLPM.h165行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation