#include <multi_class.h>
Inheritance diagram for MultiClass_Leaf_Node< T >:

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 |
| MultiClass_Leaf_Node< T >::MultiClass_Leaf_Node | ( | int | global_label, | |
| int | local_label, | |||
| Hazy_Sgd< T > * | s | |||
| ) | [inline] |
Constructor that initializes MultiClass_Leag_Node.
| [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 |
| 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.
| [in] | label | class of the training example |
| [in] | vec | feature vector of the given example |
Implements Node< T >.
| void MultiClass_Leaf_Node< T >::single_entity_read | ( | int | entity_id, | |
| int & | sClass | |||
| ) | [inline, virtual] |
Retrieves class of the entity.
| [in] | entity_id | id of the entity |
| [out] | sClass | class of the entity |
Implements Node< T >.
int MultiClass_Leaf_Node< T >::global_label [private] |
int MultiClass_Leaf_Node< T >::local_label [private] |
1.4.7