SHOGUN
v1.1.0
|
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.
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) |
![]() | |
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) |
SGIO * | get_global_io () |
void | set_global_parallel (Parallel *parallel) |
Parallel * | get_global_parallel () |
void | set_global_version (Version *version) |
Version * | get_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 |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
Protected Attributes | |
CNode * | parent |
std::vector< CNode * > | children |
int32_t | node_id |
Additional Inherited Members | |
![]() | |
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) |
CNode | ( | ) |
default constructor
Definition at line 34 of file MultitaskKernelTreeNormalizer.h.
void add_child | ( | CNode * | node | ) |
add child to current node
node | child node |
Definition at line 86 of file MultitaskKernelTreeNormalizer.h.
|
virtual |
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
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
Definition at line 58 of file MultitaskKernelTreeNormalizer.h.
int32_t getNode_id | ( | ) | const |
Definition at line 106 of file MultitaskKernelTreeNormalizer.h.
bool is_leaf | ( | ) |
Definition at line 99 of file MultitaskKernelTreeNormalizer.h.
void setNode_id | ( | int32_t | node_idx | ) |
node_idx | node id for current node |
Definition at line 112 of file MultitaskKernelTreeNormalizer.h.
float64_t beta |
parameter of node
Definition at line 118 of file MultitaskKernelTreeNormalizer.h.
|
protected |
list of child nodes
Definition at line 126 of file MultitaskKernelTreeNormalizer.h.
|
protected |
identifier of node
Definition at line 129 of file MultitaskKernelTreeNormalizer.h.
|
protected |
parent node
Definition at line 123 of file MultitaskKernelTreeNormalizer.h.