MultiClass_Internal_Node< T > Class Template Reference

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

#include <multi_class.h>

Inheritance diagram for MultiClass_Internal_Node< T >:

Node< T > List of all members.

Public Member Functions

 MultiClass_Internal_Node (int search_key, Node< T > *l, Node< T > *r, Hazy_Sgd< T > *s)
 Constructor that initializes MultiClass_Internal_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 Member Functions

int find_direction (int label)
 Considering the label, decisdes which sub-tree to search.

Private Attributes

Node< T > * l
Node< T > * r
int search_key

Detailed Description

template<class T>
class MultiClass_Internal_Node< T >

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


Constructor & Destructor Documentation

template<class T>
MultiClass_Internal_Node< T >::MultiClass_Internal_Node ( int  search_key,
Node< T > *  l,
Node< T > *  r,
Hazy_Sgd< T > *  s 
) [inline]

Constructor that initializes MultiClass_Internal_Node.

Parameters:
[in] search_key 
[in] l left sub-tree
[in] r right sub-tree
[in] s list of classifiers


Member Function Documentation

template<class T>
int MultiClass_Internal_Node< T >::find_direction ( int  label  )  [inline, private]

Considering the label, decisdes which sub-tree to search.

Parameters:
[in] label class of the entity
Returns:
0 for left sub-tree, 1 for right sub-tree

template<class T>
void MultiClass_Internal_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_Internal_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>
Node<T>* MultiClass_Internal_Node< T >::l [private]

template<class T>
Node<T> * MultiClass_Internal_Node< T >::r [private]

template<class T>
int MultiClass_Internal_Node< T >::search_key [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