CTaxonomy is used to describe hierarchical structure between tasks.
Definition at line 147 of file MultitaskKernelTreeNormalizer.h.
◆ CTaxonomy()
◆ ~CTaxonomy()
◆ add_node()
CNode* add_node |
( |
std::string |
parent_name, |
|
|
std::string |
child_name, |
|
|
float64_t |
beta |
|
) |
| |
inserts additional node into taxonomy
- Parameters
-
parent_name | name of parent |
child_name | name of child |
beta | weight of child |
Definition at line 193 of file MultitaskKernelTreeNormalizer.h.
◆ compute_node_similarity()
float64_t compute_node_similarity |
( |
int32_t |
task_lhs, |
|
|
int32_t |
task_rhs |
|
) |
| |
- Parameters
-
task_lhs | task_id on left hand side |
task_rhs | task_id on right hand side |
- Returns
- similarity between tasks
Definition at line 253 of file MultitaskKernelTreeNormalizer.h.
◆ get_id()
int32_t get_id |
( |
std::string |
name | ) |
|
◆ get_id_by_name()
int32_t get_id_by_name |
( |
std::string |
name | ) |
|
◆ get_name()
virtual const char* get_name |
( |
| ) |
const |
|
virtual |
◆ get_name2id()
std::map<std::string, int32_t> get_name2id |
( |
| ) |
|
◆ get_node()
CNode* get_node |
( |
int32_t |
task_id | ) |
|
◆ get_node_weight()
◆ get_num_leaves()
int32_t get_num_leaves |
( |
| ) |
|
◆ get_num_nodes()
int32_t get_num_nodes |
( |
| ) |
|
◆ intersect_root_path()
std::set<CNode*> intersect_root_path |
( |
CNode * |
node_lhs, |
|
|
CNode * |
node_rhs |
|
) |
| |
given two nodes, compute the intersection of their ancestors
- Parameters
-
node_lhs | node of left hand side |
node_rhs | node of right hand side |
- Returns
- intersection of the two sets of ancestors
Definition at line 232 of file MultitaskKernelTreeNormalizer.h.
◆ set_node_weight()
void set_node_weight |
( |
int32_t |
idx, |
|
|
float64_t |
weight |
|
) |
| |
◆ set_root_beta()
◆ update_task_histogram()
void update_task_histogram |
( |
std::vector< int32_t > |
task_vector_lhs | ) |
|
◆ name2id
std::map<std::string, int32_t> name2id |
|
protected |
◆ nodes
std::vector<CNode*> nodes |
|
protected |
◆ root
◆ task_histogram
The documentation for this class was generated from the following file: