Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes

CKernelLocallyLinearEmbedding Class Reference


Detailed Description

the class KernelLocallyLinearEmbedding used to preprocess data using kernel extension of Locally Linear Embedding algorithm as described in

Kayo, O. (2006). Locally linear embedding algorithm. Extensions and applications. October. Retrieved from: http://herkules.oulu.fi/isbn9514280415/isbn9514280415.pdf

Definition at line 35 of file KernelLocallyLinearEmbedding.h.

Inheritance diagram for CKernelLocallyLinearEmbedding:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CKernelLocallyLinearEmbedding ()
 CKernelLocallyLinearEmbedding (CKernel *kernel)
virtual ~CKernelLocallyLinearEmbedding ()
virtual bool init (CFeatures *features)
virtual void cleanup ()
virtual SGMatrix< float64_tapply_to_feature_matrix (CFeatures *features)
virtual SGVector< float64_tapply_to_feature_vector (SGVector< float64_t > vector)
void set_kernel (CKernel *kernel)
CKernelget_kernel () const
virtual const char * get_name () const
virtual EPreprocessorType get_type () const

Protected Member Functions

void init ()
SGMatrix< int32_t > get_neighborhood_matrix (SGMatrix< float64_t > kernel_matrix)

Static Protected Member Functions

static void * run_neighborhood_thread (void *p)
static void * run_linearreconstruction_thread (void *p)

Protected Attributes

CKernelm_kernel

Constructor & Destructor Documentation

constructor

Definition at line 65 of file KernelLocallyLinearEmbedding.cpp.

constructor

Parameters:
kernel kernel to be used

Definition at line 71 of file KernelLocallyLinearEmbedding.cpp.

~CKernelLocallyLinearEmbedding (  )  [virtual]

destructor

Definition at line 83 of file KernelLocallyLinearEmbedding.cpp.


Member Function Documentation

SGMatrix< float64_t > apply_to_feature_matrix ( CFeatures features  )  [virtual]

apply preprocessor to features

Parameters:
features 

Reimplemented from CLocallyLinearEmbedding.

Definition at line 97 of file KernelLocallyLinearEmbedding.cpp.

SGVector< float64_t > apply_to_feature_vector ( SGVector< float64_t vector  )  [virtual]

apply preprocessor to feature vector, not supported for LLE

Parameters:
vector 

Reimplemented from CLocallyLinearEmbedding.

Definition at line 216 of file KernelLocallyLinearEmbedding.cpp.

void cleanup (  )  [virtual]

cleanup

Reimplemented from CLocallyLinearEmbedding.

Definition at line 93 of file KernelLocallyLinearEmbedding.cpp.

CKernel* get_kernel (  )  const

getter for kernel

Returns:
kernel

Definition at line 82 of file KernelLocallyLinearEmbedding.h.

virtual const char* get_name ( void   )  const [virtual]

get name

Reimplemented from CLocallyLinearEmbedding.

Definition at line 89 of file KernelLocallyLinearEmbedding.h.

SGMatrix< int32_t > get_neighborhood_matrix ( SGMatrix< float64_t kernel_matrix  )  [protected]

construct neighborhood matrix by kernel matrix

Parameters:
kernel_matrix kernel matrix to be used
Returns:
matrix containing indexes of neighbors of i-th object in i-th column

Definition at line 280 of file KernelLocallyLinearEmbedding.cpp.

virtual EPreprocessorType get_type (  )  const [virtual]

get type

Reimplemented from CLocallyLinearEmbedding.

Definition at line 92 of file KernelLocallyLinearEmbedding.h.

bool init ( CFeatures features  )  [virtual]

init

Parameters:
features 

Reimplemented from CLocallyLinearEmbedding.

Definition at line 88 of file KernelLocallyLinearEmbedding.cpp.

void init ( void   )  [protected]

default init

Reimplemented from CLocallyLinearEmbedding.

Definition at line 78 of file KernelLocallyLinearEmbedding.cpp.

void * run_linearreconstruction_thread ( void *  p  )  [static, protected]

runs linear reconstruction thread

Parameters:
p thread params

Reimplemented from CLocallyLinearEmbedding.

Definition at line 222 of file KernelLocallyLinearEmbedding.cpp.

void * run_neighborhood_thread ( void *  p  )  [static, protected]

runs neighborhood determination thread

Parameters:
p thread params

Reimplemented from CLocallyLinearEmbedding.

Definition at line 340 of file KernelLocallyLinearEmbedding.cpp.

void set_kernel ( CKernel kernel  ) 

setter for kernel

Parameters:
kernel 

Definition at line 72 of file KernelLocallyLinearEmbedding.h.


Member Data Documentation

CKernel* m_kernel [protected]

number of neighbors

Definition at line 119 of file KernelLocallyLinearEmbedding.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation