Public Member Functions | Protected Member Functions | Protected Attributes

CEmbeddingConverter Class Reference

Detailed Description

class EmbeddingConverter used to create embeddings of features, e.g. construct dense numeric embedding of string features

Definition at line 30 of file EmbeddingConverter.h.

Inheritance diagram for CEmbeddingConverter:
Inheritance graph

List of all members.

Public Member Functions

 CEmbeddingConverter ()
virtual ~CEmbeddingConverter ()
virtual CFeaturesapply (CFeatures *features)=0
virtual CSimpleFeatures
< float64_t > * 
embed (CFeatures *features)
void set_target_dim (int32_t dim)
int32_t get_target_dim () const
void set_distance (CDistance *distance)
CDistanceget_distance () const
void set_kernel (CKernel *kernel)
CKernelget_kernel () const
virtual const char * get_name () const

Protected Member Functions

void init ()

Protected Attributes

int32_t m_target_dim

Constructor & Destructor Documentation


Definition at line 20 of file EmbeddingConverter.cpp.

~CEmbeddingConverter (  )  [virtual]


Definition at line 30 of file EmbeddingConverter.cpp.

Member Function Documentation

virtual CFeatures* apply ( CFeatures features  )  [pure virtual]

applies to the given data, returns embedding

features features to embed
embedding features

Implements CConverter.

Implemented in CDiffusionMaps, CKernelLocallyLinearEmbedding, CLaplacianEigenmaps, CLocallyLinearEmbedding, and CMultidimensionalScaling.

CSimpleFeatures< float64_t > * embed ( CFeatures features  )  [virtual]

embed given features, acts the same as apply, but returns SimpleFeatures

features features to embed
embedding simple features

Definition at line 36 of file EmbeddingConverter.cpp.

CDistance * get_distance (  )  const

getter for distance


Definition at line 59 of file EmbeddingConverter.cpp.

CKernel * get_kernel (  )  const

getter for kernel


Definition at line 72 of file EmbeddingConverter.cpp.

virtual const char* get_name (  )  const [virtual]
int32_t get_target_dim (  )  const

getter for target dimension

target dimension

Definition at line 47 of file EmbeddingConverter.cpp.

void init (  )  [protected]

default init

Reimplemented from CSGObject.

Reimplemented in CDiffusionMaps, CIsomap, CLaplacianEigenmaps, CLocallyLinearEmbedding, and CMultidimensionalScaling.

Definition at line 78 of file EmbeddingConverter.cpp.

void set_distance ( CDistance distance  ) 

setter for distance

distance distance to set

Definition at line 52 of file EmbeddingConverter.cpp.

void set_kernel ( CKernel kernel  ) 

setter for kernel

kernel kernel to set

Definition at line 65 of file EmbeddingConverter.cpp.

void set_target_dim ( int32_t  dim  ) 

setter for target dimension

dim target dimension

Definition at line 41 of file EmbeddingConverter.cpp.

Member Data Documentation

CDistance* m_distance [protected]

distance to be used

Definition at line 96 of file EmbeddingConverter.h.

CKernel* m_kernel [protected]

kernel to be used

Definition at line 99 of file EmbeddingConverter.h.

int32_t m_target_dim [protected]

target dim of dimensionality reduction preprocessor

Definition at line 93 of file EmbeddingConverter.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