SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
CScatterKernelNormalizer Class Reference

Detailed Description

the scatter kernel normalizer

Definition at line 23 of file ScatterKernelNormalizer.h.

Inheritance diagram for CScatterKernelNormalizer:
Inheritance graph
[legend]

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)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_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
CLabelsm_labels
CKernelNormalizerm_normalizer
int32_t m_testing_class
- Protected Attributes inherited from CKernelNormalizer
ENormalizerType m_type

Additional Inherited Members

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_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)

Constructor & Destructor Documentation

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 ~CScatterKernelNormalizer ( )
virtual

default destructor

Definition at line 61 of file ScatterKernelNormalizer.h.

Member Function Documentation

virtual const char* get_name ( ) const
virtual
Returns
object name

Implements CSGObject.

Definition at line 139 of file ScatterKernelNormalizer.h.

int32_t get_testing_class ( )

get testing class

Returns
testing class (-1 disabled, 0...class otherwise)

Definition at line 79 of file ScatterKernelNormalizer.h.

virtual bool init ( CKernel k)
virtual

initialization of the normalizer

Parameters
kkernel

Implements CKernelNormalizer.

Definition at line 69 of file ScatterKernelNormalizer.h.

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

normalize the kernel value

Parameters
valuekernel value
idx_lhsindex of left hand side vector
idx_rhsindex of right hand side vector

Implements CKernelNormalizer.

Definition at line 98 of file ScatterKernelNormalizer.h.

virtual float64_t normalize_lhs ( float64_t  value,
int32_t  idx_lhs 
)
virtual

normalize only the left hand side vector

Parameters
valuevalue of a component of the left hand side feature vector
idx_lhsindex of left hand side vector

Implements CKernelNormalizer.

Definition at line 122 of file ScatterKernelNormalizer.h.

virtual float64_t normalize_rhs ( float64_t  value,
int32_t  idx_rhs 
)
virtual

normalize only the right hand side vector

Parameters
valuevalue of a component of the right hand side feature vector
idx_rhsindex 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

Parameters
cset class to test for

Definition at line 88 of file ScatterKernelNormalizer.h.

Member Data Documentation

float64_t m_const_diag
protected

factor to multiply to diagonal elements

Definition at line 170 of file ScatterKernelNormalizer.h.

float64_t m_const_offdiag
protected

factor to multiply to off-diagonal elements

Definition at line 172 of file ScatterKernelNormalizer.h.

CLabels* m_labels
protected

labels

Definition at line 175 of file ScatterKernelNormalizer.h.

CKernelNormalizer* m_normalizer
protected

labels

Definition at line 178 of file ScatterKernelNormalizer.h.

int32_t m_testing_class
protected

upon testing which class to test for

Definition at line 181 of file ScatterKernelNormalizer.h.


The documentation for this class was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation