GClasses
|
A manifold learning algorithm that reduces dimensionality in local neighborhoods, and then stitches the reduced local neighborhoods together using the Kabsch algorithm. More...
#include <GManifold.h>
Public Member Functions | |
GBreadthFirstUnfolding (size_t reps, size_t neighborCount, size_t targetDims, GRand *pRand) | |
reps specifies the number of times to compute the embedding, and blend the results together. If you just want fast results, use reps=1. | |
GBreadthFirstUnfolding (GDomNode *pNode, GLearnerLoader &ll) | |
virtual | ~GBreadthFirstUnfolding () |
GDomNode * | serialize (GDom *pDoc) |
Serialize this object. | |
void | setNeighborFinder (GNeighborFinder *pNF) |
Specify the neighbor finder to use to pick neighbors for this algorithm. | |
virtual GMatrix * | doit (GMatrix &in) |
Perform NLDR. | |
void | useMds (bool b) |
Specify to use multi-dimensional scaling instead of PCA to reduce in local patches. | |
Protected Member Functions | |
void | refineNeighborhood (GMatrix *pLocal, size_t rootIndex, size_t *pNeighborTable, double *pDistanceTable) |
GMatrix * | reduceNeighborhood (GMatrix *pIn, size_t index, size_t *pNeighborhoods, double *pSquaredDistances) |
GMatrix * | unfold (GMatrix *pIn, size_t *pNeighborTable, double *pSquaredDistances, size_t seed, double *pOutWeights) |
Protected Attributes | |
size_t | m_reps |
size_t | m_neighborCount |
size_t | m_targetDims |
GNeighborFinder * | m_pNF |
bool | m_useMds |
GRand * | m_pRand |
A manifold learning algorithm that reduces dimensionality in local neighborhoods, and then stitches the reduced local neighborhoods together using the Kabsch algorithm.
GClasses::GBreadthFirstUnfolding::GBreadthFirstUnfolding | ( | size_t | reps, |
size_t | neighborCount, | ||
size_t | targetDims, | ||
GRand * | pRand | ||
) |
reps specifies the number of times to compute the embedding, and blend the results together. If you just want fast results, use reps=1.
GClasses::GBreadthFirstUnfolding::GBreadthFirstUnfolding | ( | GDomNode * | pNode, |
GLearnerLoader & | ll | ||
) |
virtual GClasses::GBreadthFirstUnfolding::~GBreadthFirstUnfolding | ( | ) | [virtual] |
Perform NLDR.
Implements GClasses::GTransform.
GMatrix* GClasses::GBreadthFirstUnfolding::reduceNeighborhood | ( | GMatrix * | pIn, |
size_t | index, | ||
size_t * | pNeighborhoods, | ||
double * | pSquaredDistances | ||
) | [protected] |
void GClasses::GBreadthFirstUnfolding::refineNeighborhood | ( | GMatrix * | pLocal, |
size_t | rootIndex, | ||
size_t * | pNeighborTable, | ||
double * | pDistanceTable | ||
) | [protected] |
void GClasses::GBreadthFirstUnfolding::setNeighborFinder | ( | GNeighborFinder * | pNF | ) |
Specify the neighbor finder to use to pick neighbors for this algorithm.
GMatrix* GClasses::GBreadthFirstUnfolding::unfold | ( | GMatrix * | pIn, |
size_t * | pNeighborTable, | ||
double * | pSquaredDistances, | ||
size_t | seed, | ||
double * | pOutWeights | ||
) | [protected] |
void GClasses::GBreadthFirstUnfolding::useMds | ( | bool | b | ) | [inline] |
Specify to use multi-dimensional scaling instead of PCA to reduce in local patches.
size_t GClasses::GBreadthFirstUnfolding::m_neighborCount [protected] |
GNeighborFinder* GClasses::GBreadthFirstUnfolding::m_pNF [protected] |
GRand* GClasses::GBreadthFirstUnfolding::m_pRand [protected] |
size_t GClasses::GBreadthFirstUnfolding::m_reps [protected] |
size_t GClasses::GBreadthFirstUnfolding::m_targetDims [protected] |
bool GClasses::GBreadthFirstUnfolding::m_useMds [protected] |