Classes | Public Member Functions | Protected Member Functions | Protected Attributes

CLaRank Class Reference

Detailed Description

Definition at line 308 of file LaRank.h.

Inheritance diagram for CLaRank:
Inheritance graph

List of all members.


struct  outputgradient_t
struct  process_return_t

Public Member Functions

 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 ()

Protected Member Functions

uint32_t class_count () const

Protected Attributes

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

Constructor & Destructor Documentation

CLaRank (  ) 

Definition at line 602 of file LaRank.cpp.

CLaRank ( float64_t  C,
CKernel k,
CLabels lab 


C constant C
k kernel
lab labels

Definition at line 610 of file LaRank.cpp.

~CLaRank (  )  [virtual]

Definition at line 619 of file LaRank.cpp.

Member Function Documentation

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

Definition at line 716 of file LaRank.cpp.

uint32_t class_count (  )  const [protected]

Definition at line 446 of file LaRank.h.

float64_t computeGap (  )  [virtual]

Definition at line 817 of file LaRank.cpp.

float64_t computeW2 (  ) 

Definition at line 867 of file LaRank.cpp.

void destroy (  )  [virtual]

Definition at line 809 of file LaRank.cpp.

bool get_batch_mode (  ) 

Definition at line 360 of file LaRank.h.

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

classifier type LIBSVM

Reimplemented from CClassifier.

Definition at line 354 of file LaRank.h.

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

Reimplemented from CSVM.

Definition at line 357 of file LaRank.h.

float64_t get_tau (  ) 

Definition at line 362 of file LaRank.h.

float64_t getDual (  ) 

Definition at line 883 of file LaRank.cpp.

int32_t getNSV (  ) 

Definition at line 854 of file LaRank.cpp.

uint32_t getNumOutputs (  )  const [virtual]

Definition at line 848 of file LaRank.cpp.

int32_t predict ( int32_t  x_id  )  [virtual]

Definition at line 793 of file LaRank.cpp.

void set_batch_mode ( bool  enable  ) 

Definition at line 359 of file LaRank.h.

void set_tau ( float64_t  t  ) 

Definition at line 361 of file LaRank.h.

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

Reimplemented from CClassifier.

Definition at line 624 of file LaRank.cpp.

Member Data Documentation

bool batch_mode [protected]

Definition at line 455 of file LaRank.h.

int64_t cache [protected]

Definition at line 453 of file LaRank.h.

std_hash_set< int32_t > classes [protected]

Definition at line 444 of file LaRank.h.

int32_t nb_train [protected]

Definition at line 452 of file LaRank.h.

int32_t step [protected]

Definition at line 458 of file LaRank.h.

float64_t tau [protected]

Definition at line 451 of file LaRank.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation