SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Protected Attributes
CNode Class Reference

Detailed Description

A CNode is an element of a CTaxonomy, which is used to describe hierarchical structure between tasks.

Definition at line 29 of file MultitaskKernelTreeNormalizer.h.

Inheritance diagram for CNode:
Inheritance graph
[legend]

Public Member Functions

 CNode ()
std::set< CNode * > get_path_root ()
std::vector< int32_t > get_task_ids_below ()
void add_child (CNode *node)
virtual const char * get_name () const
bool is_leaf ()
int32_t getNode_id () const
void setNode_id (int32_t node_idx)
- Public Member Functions inherited from CSGObject
 CSGObject ()
 CSGObject (const CSGObject &orig)
virtual ~CSGObject ()
virtual bool is_generic (EPrimitiveType *generic) const
template<class T >
void set_generic ()
void unset_generic ()
virtual void print_serializable (const char *prefix="")
virtual bool save_serializable (CSerializableFile *file, const char *prefix="")
virtual bool load_serializable (CSerializableFile *file, const char *prefix="")
void set_global_io (SGIO *io)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_global_version ()
SGVector< char * > get_modelsel_names ()
char * get_modsel_param_descr (const char *param_name)
index_t get_modsel_param_index (const char *param_name)

Public Attributes

float64_t beta
- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters

Protected Attributes

CNodeparent
std::vector< CNode * > children
int32_t node_id

Additional Inherited Members

- Protected Member Functions inherited from CSGObject
virtual void load_serializable_pre () throw (ShogunException)
virtual void load_serializable_post () throw (ShogunException)
virtual void save_serializable_pre () throw (ShogunException)
virtual void save_serializable_post () throw (ShogunException)

Constructor & Destructor Documentation

CNode ( )

default constructor

Definition at line 34 of file MultitaskKernelTreeNormalizer.h.

Member Function Documentation

void add_child ( CNode node)

add child to current node

Parameters
nodechild node

Definition at line 86 of file MultitaskKernelTreeNormalizer.h.

virtual const char* get_name ( ) const
virtual
Returns
object name

Implements CSGObject.

Definition at line 93 of file MultitaskKernelTreeNormalizer.h.

std::set<CNode*> get_path_root ( )

get a list of all ancestors of this node

Returns
set of CNodes

Definition at line 44 of file MultitaskKernelTreeNormalizer.h.

std::vector<int32_t> get_task_ids_below ( )

get a list of task ids at the leaves below the current node

Returns
list of task ids

Definition at line 58 of file MultitaskKernelTreeNormalizer.h.

int32_t getNode_id ( ) const
Returns
node id of current node

Definition at line 106 of file MultitaskKernelTreeNormalizer.h.

bool is_leaf ( )
Returns
boolean indicating, whether this node is a leaf

Definition at line 99 of file MultitaskKernelTreeNormalizer.h.

void setNode_id ( int32_t  node_idx)
Parameters
node_idxnode id for current node

Definition at line 112 of file MultitaskKernelTreeNormalizer.h.

Member Data Documentation

float64_t beta

parameter of node

Definition at line 118 of file MultitaskKernelTreeNormalizer.h.

std::vector<CNode*> children
protected

list of child nodes

Definition at line 126 of file MultitaskKernelTreeNormalizer.h.

int32_t node_id
protected

identifier of node

Definition at line 129 of file MultitaskKernelTreeNormalizer.h.

CNode* parent
protected

parent node

Definition at line 123 of file MultitaskKernelTreeNormalizer.h.


The documentation for this class was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation