公有成员 | 保护属性

CMultitaskKernelMaskPairNormalizer类参考


详细描述

The MultitaskKernel allows Multitask Learning via a modified kernel function.

Normalization is based on a mask that is defined by a number of pair of tasks.

在文件MultitaskKernelMaskPairNormalizer.h26行定义。

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

所有成员的列表。

公有成员

 CMultitaskKernelMaskPairNormalizer ()
 CMultitaskKernelMaskPairNormalizer (std::vector< int32_t > task_vector_, std::vector< std::pair< int32_t, int32_t > > active_pairs_)
virtual ~CMultitaskKernelMaskPairNormalizer ()
virtual bool init (CKernel *k)
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)
std::vector< int32_t > get_task_vector_lhs () const
void set_task_vector_lhs (std::vector< int32_t > vec)
std::vector< int32_t > get_task_vector_rhs () const
void set_task_vector_rhs (std::vector< int32_t > vec)
void set_task_vector (std::vector< int32_t > vec)
float64_t get_similarity (int32_t task_lhs, int32_t task_rhs)
std::vector< std::pair
< int32_t, int32_t > > 
get_active_pairs ()
float64_t get_normalization_constant () const
float64_t set_normalization_constant (float64_t constant)
virtual const char * get_name () const

保护属性

std::vector< std::pair
< int32_t, int32_t > > 
active_pairs
std::vector< int32_t > task_vector_lhs
std::vector< int32_t > task_vector_rhs
float64_t scale
float64_t normalization_constant

构造及析构函数文档

default constructor

在文件MultitaskKernelMaskPairNormalizer.h35行定义。

CMultitaskKernelMaskPairNormalizer ( std::vector< int32_t >  task_vector_,
std::vector< std::pair< int32_t, int32_t > >  active_pairs_ 
)

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

在文件MultitaskKernelMaskPairNormalizer.h44行定义。

virtual ~CMultitaskKernelMaskPairNormalizer (  )  [virtual]

default destructor

在文件MultitaskKernelMaskPairNormalizer.h56行定义。


成员函数文档

std::vector<std::pair<int32_t, int32_t> > get_active_pairs (  ) 
返回:
vector of active pairs

在文件MultitaskKernelMaskPairNormalizer.h216行定义。

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

实现了CSGObject

在文件MultitaskKernelMaskPairNormalizer.h235行定义。

float64_t get_normalization_constant (  )  const
返回:
normalization constant

在文件MultitaskKernelMaskPairNormalizer.h222行定义。

float64_t get_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

在文件MultitaskKernelMaskPairNormalizer.h192行定义。

std::vector<int32_t> get_task_vector_lhs (  )  const
返回:
vec task vector with containing task_id for each example on left hand side

在文件MultitaskKernelMaskPairNormalizer.h139行定义。

std::vector<int32_t> get_task_vector_rhs (  )  const
返回:
vec task vector with containing task_id for each example on right hand side

在文件MultitaskKernelMaskPairNormalizer.h160行定义。

virtual bool init ( CKernel k  )  [virtual]

initialization of the normalizer

参数:
k kernel

实现了CKernelNormalizer

在文件MultitaskKernelMaskPairNormalizer.h62行定义。

virtual float64_t normalize ( float64_t  value,
int32_t  idx_lhs,
int32_t  idx_rhs 
) [virtual]

normalize the kernel value

参数:
value kernel value
idx_lhs index of left hand side vector
idx_rhs index of right hand side vector

实现了CKernelNormalizer

在文件MultitaskKernelMaskPairNormalizer.h100行定义。

virtual float64_t normalize_lhs ( float64_t  value,
int32_t  idx_lhs 
) [virtual]

normalize only the left hand side vector

参数:
value value of a component of the left hand side feature vector
idx_lhs index of left hand side vector

实现了CKernelNormalizer

在文件MultitaskKernelMaskPairNormalizer.h122行定义。

virtual float64_t normalize_rhs ( float64_t  value,
int32_t  idx_rhs 
) [virtual]

normalize only the right hand side vector

参数:
value value of a component of the right hand side feature vector
idx_rhs index of right hand side vector

实现了CKernelNormalizer

在文件MultitaskKernelMaskPairNormalizer.h132行定义。

float64_t set_normalization_constant ( float64_t  constant  ) 
参数:
constant normalization constant

在文件MultitaskKernelMaskPairNormalizer.h228行定义。

void set_task_vector ( std::vector< int32_t >  vec  ) 
参数:
vec task vector with containing task_id for each example

在文件MultitaskKernelMaskPairNormalizer.h180行定义。

void set_task_vector_lhs ( std::vector< int32_t >  vec  ) 
参数:
vec task vector with containing task_id for each example

在文件MultitaskKernelMaskPairNormalizer.h146行定义。

void set_task_vector_rhs ( std::vector< int32_t >  vec  ) 
参数:
vec task vector with containing task_id for each example

在文件MultitaskKernelMaskPairNormalizer.h167行定义。


成员数据文档

std::vector<std::pair<int32_t, int32_t> > active_pairs [protected]

list of active tasks

在文件MultitaskKernelMaskPairNormalizer.h245行定义。

outer normalization constant

在文件MultitaskKernelMaskPairNormalizer.h257行定义。

float64_t scale [protected]

value of first element

在文件MultitaskKernelMaskPairNormalizer.h254行定义。

std::vector<int32_t> task_vector_lhs [protected]

task vector indicating to which task each example on the left hand side belongs

在文件MultitaskKernelMaskPairNormalizer.h248行定义。

std::vector<int32_t> task_vector_rhs [protected]

task vector indicating to which task each example on the right hand side belongs

在文件MultitaskKernelMaskPairNormalizer.h251行定义。


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

SHOGUN Machine Learning Toolbox - Documentation