SHOGUN
v1.1.0
|
VarianceKernelNormalizer divides by the ``variance''.
This effectively normalizes the vectors in feature space to variance 1 (see CVarianceKernelNormalizer)
Definition at line 27 of file VarianceKernelNormalizer.h.
Public Member Functions | |
CVarianceKernelNormalizer () | |
virtual | ~CVarianceKernelNormalizer () |
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 () const |
![]() | |
CKernelNormalizer () | |
virtual | ~CKernelNormalizer () |
virtual void | register_params () |
ENormalizerType | get_normalizer_type () |
void | set_normalizer_type (ENormalizerType type) |
![]() | |
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 | meandiff |
float64_t | sqrt_meandiff |
![]() | |
ENormalizerType | m_type |
Additional Inherited Members | |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
![]() | |
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 32 of file VarianceKernelNormalizer.h.
|
virtual |
default destructor
Definition at line 41 of file VarianceKernelNormalizer.h.
|
virtual |
|
virtual |
initialization of the normalizer
k | kernel |
Implements CKernelNormalizer.
Definition at line 47 of file VarianceKernelNormalizer.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 84 of file VarianceKernelNormalizer.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 94 of file VarianceKernelNormalizer.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 103 of file VarianceKernelNormalizer.h.
|
protected |
scaling constant
Definition at line 113 of file VarianceKernelNormalizer.h.
|
protected |
square root of scaling constant
Definition at line 115 of file VarianceKernelNormalizer.h.