详细描述
The MultitaskKernel allows Multitask Learning via a modified kernel function based on taxonomy.
在文件MultitaskKernelTreeNormalizer.h第368行定义。
所有成员的列表。
公有成员 |
| CMultitaskKernelTreeNormalizer () |
| CMultitaskKernelTreeNormalizer (std::vector< std::string > task_lhs, std::vector< std::string > task_rhs, CTaxonomy tax) |
virtual | ~CMultitaskKernelTreeNormalizer () |
void | update_cache () |
virtual float64_t | normalize (float64_t value, int32_t idx_lhs, int32_t idx_rhs) |
virtual float64_t | normalize_lhs (float64_t value, int32_t idx_lhs) |
virtual float64_t | normalize_rhs (float64_t value, int32_t idx_rhs) |
void | set_task_vector_lhs (std::vector< std::string > vec) |
void | set_task_vector_rhs (std::vector< std::string > vec) |
void | set_task_vector (std::vector< std::string > vec) |
int32_t | get_num_betas () |
float64_t | get_beta (int32_t idx) |
void | set_beta (int32_t idx, float64_t weight) |
float64_t | get_node_similarity (int32_t node_lhs, int32_t node_rhs) |
void | set_node_similarity (int32_t node_lhs, int32_t node_rhs, float64_t similarity) |
virtual const char * | get_name () const |
保护属性 |
CTaxonomy | taxonomy |
int32_t | num_nodes |
std::vector< int32_t > | task_vector_lhs |
std::vector< int32_t > | task_vector_rhs |
std::vector< float64_t > | dependency_matrix |
构造及析构函数文档
default constructor
- 参数:
-
| task_lhs | task vector with containing task_id for each example for left hand side |
| task_rhs | task vector with containing task_id for each example for right hand side |
| tax | taxonomy |
在文件MultitaskKernelTreeNormalizer.h第387行定义。
成员函数文档
virtual const char* get_name |
( |
|
) |
const [virtual] |
float64_t get_node_similarity |
( |
int32_t |
node_lhs, |
|
|
int32_t |
node_rhs | |
|
) |
| | |
int32_t get_num_betas |
( |
|
) |
[virtual] |
virtual float64_t normalize |
( |
float64_t |
value, |
|
|
int32_t |
idx_lhs, |
|
|
int32_t |
idx_rhs | |
|
) |
| | [virtual] |
void set_beta |
( |
int32_t |
idx, |
|
|
float64_t |
weight | |
|
) |
| | [virtual] |
void set_node_similarity |
( |
int32_t |
node_lhs, |
|
|
int32_t |
node_rhs, |
|
|
float64_t |
similarity | |
|
) |
| | |
void set_task_vector |
( |
std::vector< std::string > |
vec |
) |
|
void set_task_vector_lhs |
( |
std::vector< std::string > |
vec |
) |
|
void set_task_vector_rhs |
( |
std::vector< std::string > |
vec |
) |
|
成员数据文档
该类的文档由以下文件生成: