公有成员 | 保护属性

CTaxonomy类参考


详细描述

CTaxonomy is used to describe hierarchical structure between tasks.

在文件MultitaskKernelTreeNormalizer.h141行定义。

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

所有成员的列表。

公有成员

 CTaxonomy ()
CNodeget_node (int32_t task_id)
void set_root_beta (float64_t beta)
CNodeadd_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)

保护属性

CNoderoot
std::map< std::string, int32_t > name2id
std::vector< CNode * > nodes
std::map< int32_t, float64_ttask_histogram

构造及析构函数文档

CTaxonomy (  )

default constructor

在文件MultitaskKernelTreeNormalizer.h148行定义。


成员函数文档

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

inserts additional node into taxonomy

参数:
parent_namename of parent
child_namename of child
betaweight of child

在文件MultitaskKernelTreeNormalizer.h177行定义。

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

在文件MultitaskKernelTreeNormalizer.h238行定义。

int32_t get_id ( std::string  name )

translates name to id

参数:
namename of task
返回:
id

在文件MultitaskKernelTreeNormalizer.h209行定义。

int32_t get_id_by_name ( std::string  name )

translate name to id

参数:
namenode name
返回:
id

在文件MultitaskKernelTreeNormalizer.h345行定义。

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

实现了CSGObject

在文件MultitaskKernelTreeNormalizer.h330行定义。

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

在文件MultitaskKernelTreeNormalizer.h336行定义。

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

在文件MultitaskKernelTreeNormalizer.h160行定义。

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

在文件MultitaskKernelTreeNormalizer.h313行定义。

int32_t get_num_leaves (  )
返回:
number of leaves

在文件MultitaskKernelTreeNormalizer.h297行定义。

int32_t get_num_nodes (  )
返回:
number of nodes

在文件MultitaskKernelTreeNormalizer.h291行定义。

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

given two nodes, compute the intersection of their ancestors

参数:
node_lhsnode of left hand side
node_rhsnode of right hand side
返回:
intersection of the two sets of ancestors

在文件MultitaskKernelTreeNormalizer.h218行定义。

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

在文件MultitaskKernelTreeNormalizer.h323行定义。

void set_root_beta ( float64_t  beta )

set root weight

参数:
betaweight

在文件MultitaskKernelTreeNormalizer.h167行定义。

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

keep track of how many elements each task has

参数:
task_vector_lhsvector of task ids for examples

在文件MultitaskKernelTreeNormalizer.h261行定义。


成员数据文档

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

在文件MultitaskKernelTreeNormalizer.h354行定义。

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

在文件MultitaskKernelTreeNormalizer.h355行定义。

CNode* root [protected]

在文件MultitaskKernelTreeNormalizer.h353行定义。

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

在文件MultitaskKernelTreeNormalizer.h356行定义。


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

SHOGUN Machine Learning Toolbox - Documentation