|
SHOGUN
v1.1.0
|
the scatter kernel normalizer
Definition at line 23 of file ScatterKernelNormalizer.h.

Public Member Functions | |
| CScatterKernelNormalizer () | |
| CScatterKernelNormalizer (float64_t const_diag, float64_t const_offdiag, CLabels *labels, CKernelNormalizer *normalizer=NULL) | |
| virtual | ~CScatterKernelNormalizer () |
| virtual bool | init (CKernel *k) |
| int32_t | get_testing_class () |
| void | set_testing_class (int32_t c) |
| 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 () const |
Public Member Functions inherited from CKernelNormalizer | |
| CKernelNormalizer () | |
| virtual | ~CKernelNormalizer () |
| virtual void | register_params () |
| ENormalizerType | get_normalizer_type () |
| void | set_normalizer_type (ENormalizerType type) |
Public Member Functions inherited from CSGObject | |
| CSGObject () | |
| CSGObject (const CSGObject &orig) | |
| virtual | ~CSGObject () |
| virtual bool | is_generic (EPrimitiveType *generic) const |
| template<class T > | |
| void | set_generic () |
| void | unset_generic () |
| virtual void | print_serializable (const char *prefix="") |
| virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
| virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
| void | set_global_io (SGIO *io) |
| SGIO * | get_global_io () |
| void | set_global_parallel (Parallel *parallel) |
| Parallel * | get_global_parallel () |
| void | set_global_version (Version *version) |
| Version * | get_global_version () |
| SGVector< char * > | get_modelsel_names () |
| char * | get_modsel_param_descr (const char *param_name) |
| index_t | get_modsel_param_index (const char *param_name) |
Protected Attributes | |
| float64_t | m_const_diag |
| float64_t | m_const_offdiag |
| CLabels * | m_labels |
| CKernelNormalizer * | m_normalizer |
| int32_t | m_testing_class |
Protected Attributes inherited from CKernelNormalizer | |
| ENormalizerType | m_type |
Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
Protected Member Functions inherited from CSGObject | |
| virtual void | load_serializable_pre () throw (ShogunException) |
| virtual void | load_serializable_post () throw (ShogunException) |
| virtual void | save_serializable_pre () throw (ShogunException) |
| virtual void | save_serializable_post () throw (ShogunException) |
default constructor
Definition at line 28 of file ScatterKernelNormalizer.h.
| CScatterKernelNormalizer | ( | float64_t | const_diag, |
| float64_t | const_offdiag, | ||
| CLabels * | labels, | ||
| CKernelNormalizer * | normalizer = NULL |
||
| ) |
default constructor
Definition at line 35 of file ScatterKernelNormalizer.h.
|
virtual |
default destructor
Definition at line 61 of file ScatterKernelNormalizer.h.
|
virtual |
| int32_t get_testing_class | ( | ) |
get testing class
Definition at line 79 of file ScatterKernelNormalizer.h.
|
virtual |
initialization of the normalizer
| k | kernel |
Implements CKernelNormalizer.
Definition at line 69 of file ScatterKernelNormalizer.h.
normalize the kernel value
| value | kernel value |
| idx_lhs | index of left hand side vector |
| idx_rhs | index of right hand side vector |
Implements CKernelNormalizer.
Definition at line 98 of file ScatterKernelNormalizer.h.
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 |
Implements CKernelNormalizer.
Definition at line 122 of file ScatterKernelNormalizer.h.
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 |
Implements CKernelNormalizer.
Definition at line 132 of file ScatterKernelNormalizer.h.
| void set_testing_class | ( | int32_t | c | ) |
set testing status
| c | set class to test for |
Definition at line 88 of file ScatterKernelNormalizer.h.
|
protected |
factor to multiply to diagonal elements
Definition at line 170 of file ScatterKernelNormalizer.h.
|
protected |
factor to multiply to off-diagonal elements
Definition at line 172 of file ScatterKernelNormalizer.h.
|
protected |
labels
Definition at line 175 of file ScatterKernelNormalizer.h.
|
protected |
labels
Definition at line 178 of file ScatterKernelNormalizer.h.
|
protected |
upon testing which class to test for
Definition at line 181 of file ScatterKernelNormalizer.h.