the LaRank multiclass SVM machine
Definition at line 308 of file LaRank.h.
Classes | |
struct | outputgradient_t |
struct | process_return_t |
Public Member Functions | |
CLaRank () | |
CLaRank (float64_t C, CKernel *k, CLabels *lab) | |
virtual | ~CLaRank () |
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 | |
bool | train_machine (CFeatures *data) |
uint32_t | class_count () const |
class count | |
Protected Attributes | |
std_hash_set< int32_t > | classes |
classes | |
float64_t | tau |
tau | |
int32_t | nb_train |
nb train | |
int64_t | cache |
cache | |
bool | batch_mode |
whether to use online learning or batch training | |
int32_t | step |
progess output |
CLaRank | ( | ) |
Definition at line 582 of file LaRank.cpp.
~CLaRank | ( | ) | [virtual] |
Definition at line 599 of file LaRank.cpp.
int32_t add | ( | int32_t | x_id, | |
int32_t | yi | |||
) | [virtual] |
float64_t computeGap | ( | ) | [virtual] |
computeGap
Definition at line 797 of file LaRank.cpp.
float64_t computeW2 | ( | ) |
compute W2
Definition at line 847 of file LaRank.cpp.
void destroy | ( | ) | [virtual] |
destroy
Definition at line 789 of file LaRank.cpp.
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
virtual const char* get_name | ( | void | ) | const [virtual] |
float64_t getDual | ( | ) |
get Dual
Definition at line 863 of file LaRank.cpp.
int32_t getNSV | ( | ) |
get NSV
Definition at line 834 of file LaRank.cpp.
uint32_t getNumOutputs | ( | ) | const [virtual] |
get num outputs
Definition at line 828 of file LaRank.cpp.
int32_t predict | ( | int32_t | x_id | ) | [virtual] |
void set_batch_mode | ( | bool | enable | ) |
bool train_machine | ( | CFeatures * | data | ) | [protected, virtual] |
bool batch_mode [protected] |