SHOGUN v0.9.0
|
DiceKernelNormalizer performs kernel normalization inspired by the Dice coefficient (see http://en.wikipedia.org/wiki/Dice's_coefficient)
在文件DiceKernelNormalizer.h第26行定义。
公有成员 | |
CDiceKernelNormalizer (bool use_opt_diag=false) | |
virtual | ~CDiceKernelNormalizer () |
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) |
virtual const char * | get_name (void) const |
bool | alloc_and_compute_diag (CKernel *k, float64_t *&v, int32_t num) |
保护属性 | |
float64_t * | diag_lhs |
int32_t | num_diag_lhs |
float64_t * | diag_rhs |
int32_t | num_diag_rhs |
bool | use_optimized_diagonal_computation |
CDiceKernelNormalizer | ( | bool | use_opt_diag = false | ) |
default constructor
use_opt_diag | - some kernels support faster diagonal compuation via compute_diag(idx), this flag enables this |
在文件DiceKernelNormalizer.h第33行定义。
virtual ~CDiceKernelNormalizer | ( | ) | [virtual] |
default destructor
在文件DiceKernelNormalizer.h第47行定义。
alloc and compute the vector containing the square root of the diagonal elements of this kernel.
在文件DiceKernelNormalizer.h第125行定义。
virtual const char* get_name | ( | void | ) | const [virtual] |
Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.
实现了CSGObject。
在文件DiceKernelNormalizer.h第117行定义。
virtual bool init | ( | CKernel * | k | ) | [virtual] |
normalize the kernel value
value | kernel value |
idx_lhs | index of left hand side vector |
idx_rhs | index of right hand side vector |
在文件DiceKernelNormalizer.h第85行定义。
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 |
在文件DiceKernelNormalizer.h第96行定义。
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 |
在文件DiceKernelNormalizer.h第106行定义。
diagonal left-hand side
在文件DiceKernelNormalizer.h第151行定义。
diagonal right-hand side
在文件DiceKernelNormalizer.h第155行定义。
int32_t num_diag_lhs [protected] |
在文件DiceKernelNormalizer.h第152行定义。
int32_t num_diag_rhs [protected] |
在文件DiceKernelNormalizer.h第156行定义。
bool use_optimized_diagonal_computation [protected] |
flat if optimized diagonal computation is used
在文件DiceKernelNormalizer.h第159行定义。