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.

| Public Member Functions | |
| CEmbeddingConverter () | |
| virtual | ~CEmbeddingConverter () | 
| virtual CFeatures * | apply (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) | 
| CDistance * | get_distance () const | 
| void | set_kernel (CKernel *kernel) | 
| CKernel * | get_kernel () const | 
| virtual const char * | get_name () const | 
| Protected Member Functions | |
| void | init () | 
| Protected Attributes | |
| int32_t | m_target_dim | 
| CDistance * | m_distance | 
| CKernel * | m_kernel | 
constructor
Definition at line 20 of file EmbeddingConverter.cpp.
| ~CEmbeddingConverter | ( | ) |  [virtual] | 
destructor
Definition at line 30 of file EmbeddingConverter.cpp.
applies to the given data, returns embedding
| features | features to embed | 
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 | 
Definition at line 36 of file EmbeddingConverter.cpp.
| CDistance * get_distance | ( | ) | const | 
| CKernel * get_kernel | ( | ) | const | 
| virtual const char* get_name | ( | ) | const  [virtual] | 
get name
Reimplemented from CConverter.
Reimplemented in CDiffusionMaps, CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelLocalTangentSpaceAlignment, CLaplacianEigenmaps, CLinearLocalTangentSpaceAlignment, CLocalityPreservingProjections, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CMultidimensionalScaling, and CNeighborhoodPreservingEmbedding.
Definition at line 83 of file EmbeddingConverter.h.
| int32_t get_target_dim | ( | ) | const | 
getter for 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.
| CDistance* m_distance  [protected] | 
distance to be used
Definition at line 96 of file EmbeddingConverter.h.
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.