Node< T > Class Template Reference

This is a generic Node class that is extended by Internal or Leaf Nodes. More...

#include <multi_class.h>

Inheritance diagram for Node< T >:

MultiClass_Internal_Node< T > MultiClass_Leaf_Node< T > List of all members.

Public Member Functions

virtual void single_entity_read (int entity_id, int &sClass)=0
 Retrieves class of the entity.
virtual void insert_example (int label, T &vec)=0
 Inserts given training examples to the tree and model is updated with this example.
virtual ~Node ()
 Destructor.

Protected Attributes

Hazy_Sgd< T > * _classifier
 List of classifiers.

Detailed Description

template<class T>
class Node< T >

This is a generic Node class that is extended by Internal or Leaf Nodes.


Constructor & Destructor Documentation

template<class T>
virtual Node< T >::~Node (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<class T>
virtual void Node< T >::insert_example ( int  label,
T &  vec 
) [pure 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

Implemented in MultiClass_Internal_Node< T >, and MultiClass_Leaf_Node< T >.

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

Retrieves class of the entity.

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

Implemented in MultiClass_Internal_Node< T >, and MultiClass_Leaf_Node< T >.


Member Data Documentation

template<class T>
Hazy_Sgd<T>* Node< T >::_classifier [protected]

List of classifiers.


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