公有成员 | 保护属性

CTaxonomy类参考


详细描述

CTaxonomy is used to describe hierarchical structure between tasks.

在文件MultitaskKernelTreeNormalizer.h第141行定义。

继承图,类CTaxonomy
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CTaxonomy ()
CNode * get_node (int32_t task_id)
void set_root_beta (float64_t beta)
CNode * add_node (std::string parent_name, std::string child_name, float64_t beta)
int32_t get_id (std::string name)
std::set< CNode * > intersect_root_path (CNode *node_lhs, CNode *node_rhs)
float64_t compute_node_similarity (int32_t task_lhs, int32_t task_rhs)
void update_task_histogram (std::vector< int32_t > task_vector_lhs)
int32_t get_num_nodes ()
int32_t get_num_leaves ()
float64_t get_node_weight (int32_t idx)
void set_node_weight (int32_t idx, float64_t weight)
virtual const char * get_name () const
std::map< std::string, int32_t > get_name2id ()
int32_t get_id_by_name (std::string name)

保护属性

CNode * root
std::map< std::string, int32_t > name2id
std::vector< CNode * > nodes
std::map< int32_t, float64_t > task_histogram

构造及析构函数文档

CTaxonomy (  ) 

default constructor

在文件MultitaskKernelTreeNormalizer.h第148行定义。


成员函数文档

CNode* add_node ( std::string  parent_name,
std::string  child_name,
float64_t  beta 
)

inserts additional node into taxonomy

参数:
parent_name name of parent
child_name name of child
beta weight of child

在文件MultitaskKernelTreeNormalizer.h第177行定义。

float64_t compute_node_similarity ( int32_t  task_lhs,
int32_t  task_rhs 
)
参数:
task_lhs task_id on left hand side
task_rhs task_id on right hand side
返回:
similarity between tasks

在文件MultitaskKernelTreeNormalizer.h第238行定义。

int32_t get_id ( std::string  name  ) 

translates name to id

参数:
name name of task
返回:
id

在文件MultitaskKernelTreeNormalizer.h第209行定义。

int32_t get_id_by_name ( std::string  name  ) 

translate name to id

参数:
name node name
返回:
id

在文件MultitaskKernelTreeNormalizer.h第345行定义。

virtual const char* get_name (  )  const [virtual]
返回:
object name

实现了CSGObject。

在文件MultitaskKernelTreeNormalizer.h第330行定义。

std::map<std::string, int32_t> get_name2id (  ) 
返回:
mapping from name to id

在文件MultitaskKernelTreeNormalizer.h第336行定义。

CNode* get_node ( int32_t  task_id  ) 
参数:
task_id task identifier
返回:
node with id task_id

在文件MultitaskKernelTreeNormalizer.h第160行定义。

float64_t get_node_weight ( int32_t  idx  ) 
返回:
weight of node with identifier idx

在文件MultitaskKernelTreeNormalizer.h第313行定义。

int32_t get_num_leaves (  ) 
返回:
number of leaves

在文件MultitaskKernelTreeNormalizer.h第297行定义。

int32_t get_num_nodes (  ) 
返回:
number of nodes

在文件MultitaskKernelTreeNormalizer.h第291行定义。

std::set<CNode*> intersect_root_path ( CNode *  node_lhs,
CNode *  node_rhs 
)

given two nodes, compute the intersection of their ancestors

参数:
node_lhs node of left hand side
node_rhs node of right hand side
返回:
intersection of the two sets of ancestors

在文件MultitaskKernelTreeNormalizer.h第218行定义。

void set_node_weight ( int32_t  idx,
float64_t  weight 
)
参数:
idx node id
weight weight to set

在文件MultitaskKernelTreeNormalizer.h第323行定义。

void set_root_beta ( float64_t  beta  ) 

set root weight

参数:
beta weight

在文件MultitaskKernelTreeNormalizer.h第167行定义。

void update_task_histogram ( std::vector< int32_t >  task_vector_lhs  ) 

keep track of how many elements each task has

参数:
task_vector_lhs vector of task ids for examples

在文件MultitaskKernelTreeNormalizer.h第261行定义。


成员数据文档

std::map<std::string, int32_t> name2id [protected]

在文件MultitaskKernelTreeNormalizer.h第354行定义。

std::vector<CNode*> nodes [protected]

在文件MultitaskKernelTreeNormalizer.h第355行定义。

CNode* root [protected]

在文件MultitaskKernelTreeNormalizer.h第353行定义。

std::map<int32_t, float64_t> task_histogram [protected]

在文件MultitaskKernelTreeNormalizer.h第356行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation