SHOGUN v0.9.0
组合类型 | 公有成员 | 保护成员 | 保护属性
CLaRank类参考

详细描述

在文件LaRank.h308行定义。

继承图,类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.cpp602行定义。

CLaRank ( float64_t  C,
CKernel k,
CLabels lab 
)

constructor

参数:
Cconstant C
kkernel
lablabels

在文件LaRank.cpp610行定义。

~CLaRank ( ) [virtual]

在文件LaRank.cpp619行定义。


成员函数文档

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

在文件LaRank.cpp716行定义。

uint32_t class_count ( ) const [protected]

在文件LaRank.h446行定义。

float64_t computeGap ( ) [virtual]

在文件LaRank.cpp817行定义。

float64_t computeW2 ( )

在文件LaRank.cpp867行定义。

void destroy ( ) [virtual]

在文件LaRank.cpp809行定义。

bool get_batch_mode ( )

在文件LaRank.h360行定义。

virtual EClassifierType get_classifier_type ( ) [virtual]

get classifier type

返回:
classifier type LIBSVM

重载CClassifier

在文件LaRank.h354行定义。

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

重载CSVM

在文件LaRank.h357行定义。

float64_t get_tau ( )

在文件LaRank.h362行定义。

float64_t getDual ( )

在文件LaRank.cpp883行定义。

int32_t getNSV ( )

在文件LaRank.cpp854行定义。

uint32_t getNumOutputs ( ) const [virtual]

在文件LaRank.cpp848行定义。

int32_t predict ( int32_t  x_id) [virtual]

在文件LaRank.cpp793行定义。

void set_batch_mode ( bool  enable)

在文件LaRank.h359行定义。

void set_tau ( float64_t  t)

在文件LaRank.h361行定义。

bool train ( CFeatures data) [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

在文件LaRank.cpp624行定义。


成员数据文档

bool batch_mode [protected]

在文件LaRank.h455行定义。

int64_t cache [protected]

在文件LaRank.h453行定义。

std_hash_set< int32_t > classes [protected]

在文件LaRank.h444行定义。

int32_t nb_train [protected]

在文件LaRank.h452行定义。

int32_t step [protected]

在文件LaRank.h458行定义。

float64_t tau [protected]

在文件LaRank.h451行定义。


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

SHOGUN Machine Learning Toolbox - Documentation