MultiClass_Leaf_Node< T > Class Template Reference

This class extends Node and represents Leag node in the tree. More...

#include <multi_class.h>

Inheritance diagram for MultiClass_Leaf_Node< T >:

Node< T > List of all members.

Public Member Functions

 MultiClass_Leaf_Node (int global_label, int local_label, Hazy_Sgd< T > *s)
 Constructor that initializes MultiClass_Leag_Node.
void single_entity_read (int entity_id, int &sClass)
 Retrieves class of the entity.
void insert_example (int label, T &vec)
 Inserts given training examples to the tree and model is updated with this example.

Private Attributes

int global_label
int local_label

Detailed Description

template<class T>
class MultiClass_Leaf_Node< T >

This class extends Node and represents Leag node in the tree.


Constructor & Destructor Documentation

template<class T>
MultiClass_Leaf_Node< T >::MultiClass_Leaf_Node ( int  global_label,
int  local_label,
Hazy_Sgd< T > *  s 
) [inline]

Constructor that initializes MultiClass_Leag_Node.

Parameters:
[in] global_label represents the actual class that comes from training example
[in] local_label represents the label that leaf node keeps: either -1 or 1
[in] s list of classifiers


Member Function Documentation

template<class T>
void MultiClass_Leaf_Node< T >::insert_example ( int  label,
T &  vec 
) [inline, virtual]

Inserts given training examples to the tree and model is updated with this example.

Parameters:
[in] label class of the training example
[in] vec feature vector of the given example

Implements Node< T >.

template<class T>
void MultiClass_Leaf_Node< T >::single_entity_read ( int  entity_id,
int &  sClass 
) [inline, virtual]

Retrieves class of the entity.

Parameters:
[in] entity_id id of the entity
[out] sClass class of the entity

Implements Node< T >.


Member Data Documentation

template<class T>
int MultiClass_Leaf_Node< T >::global_label [private]

template<class T>
int MultiClass_Leaf_Node< T >::local_label [private]


The documentation for this class was generated from the following file:
Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7