CLaRank类参考


详细描述

在文件LaRank.h第305行定义。

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

所有成员的列表。

组合类型

struct  outputgradient_t
struct  process_return_t

公有成员

 CLaRank ()
 CLaRank (float64_t C, CKernel *k, CLabels *lab)
virtual ~CLaRank ()
bool train (CFeatures *data)
virtual int32_t add (int32_t x_id, int32_t yi)
virtual int32_t predict (int32_t x_id)
virtual void destroy ()
virtual float64_t computeGap ()
virtual uint32_t getNumOutputs () const
int32_t getNSV ()
float64_t computeW2 ()
float64_t getDual ()
virtual EClassifierType get_classifier_type ()
virtual const char * get_name () const
void set_batch_mode (bool enable)
bool get_batch_mode ()
void set_tau (float64_t t)
float64_t get_tau ()

保护成员

uint32_t class_count () const

保护属性

std_hash_set< int32_t > classes
float64_t tau
int32_t nb_train
int64_t cache
bool batch_mode
int32_t step

构造及析构函数文档

CLaRank (  ) 

在文件LaRank.cpp第602行定义。

CLaRank ( float64_t  C,
CKernel *  k,
CLabels *  lab 
)

constructor

参数:
C constant C
k kernel
lab labels

在文件LaRank.cpp第610行定义。

~CLaRank (  )  [virtual]

在文件LaRank.cpp第619行定义。


成员函数文档

int32_t add ( int32_t  x_id,
int32_t  yi 
) [virtual]

在文件LaRank.cpp第716行定义。

uint32_t class_count (  )  const [protected]

在文件LaRank.h第443行定义。

float64_t computeGap (  )  [virtual]

在文件LaRank.cpp第817行定义。

float64_t computeW2 (  ) 

在文件LaRank.cpp第867行定义。

void destroy (  )  [virtual]

在文件LaRank.cpp第809行定义。

bool get_batch_mode (  ) 

在文件LaRank.h第357行定义。

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

返回:
classifier type LIBSVM

重载CClassifier。

在文件LaRank.h第351行定义。

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

重载CSVM。

在文件LaRank.h第354行定义。

float64_t get_tau (  ) 

在文件LaRank.h第359行定义。

float64_t getDual (  ) 

在文件LaRank.cpp第883行定义。

int32_t getNSV (  ) 

在文件LaRank.cpp第854行定义。

uint32_t getNumOutputs (  )  const [virtual]

在文件LaRank.cpp第848行定义。

int32_t predict ( int32_t  x_id  )  [virtual]

在文件LaRank.cpp第793行定义。

void set_batch_mode ( bool  enable  ) 

在文件LaRank.h第356行定义。

void set_tau ( float64_t  t  ) 

在文件LaRank.h第358行定义。

bool train ( CFeatures *  data  )  [virtual]

train classifier

参数:
data training 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。

在文件LaRank.cpp第624行定义。


成员数据文档

bool batch_mode [protected]

在文件LaRank.h第452行定义。

int64_t cache [protected]

在文件LaRank.h第450行定义。

std_hash_set< int32_t > classes [protected]

在文件LaRank.h第441行定义。

int32_t nb_train [protected]

在文件LaRank.h第449行定义。

int32_t step [protected]

在文件LaRank.h第455行定义。

float64_t tau [protected]

在文件LaRank.h第448行定义。


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

SHOGUN Machine Learning Toolbox - Documentation