Skip to content

Commit

Permalink
Fixed wrong embed method of Laplacian Eigenmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Oct 28, 2011
1 parent 0a18485 commit 0d22945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/shogun/converter/LaplacianEigenmaps.cpp
Expand Up @@ -79,13 +79,13 @@ CFeatures* CLaplacianEigenmaps::apply(CFeatures* features)
// compute distance matrix
ASSERT(m_distance);
m_distance->init(features,features);
CSimpleFeatures<float64_t>* embedding = embed(m_distance);
CSimpleFeatures<float64_t>* embedding = embed_distance(m_distance);
m_distance->remove_lhs_and_rhs();
SG_UNREF(features);
return (CFeatures*)embedding;
}

CSimpleFeatures<float64_t>* CLaplacianEigenmaps::embed(CDistance* distance)
CSimpleFeatures<float64_t>* CLaplacianEigenmaps::embed_distance(CDistance* distance)
{
int32_t i,j;
SGMatrix<float64_t> W_sgmatrix = distance->get_distance_matrix();
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/converter/LaplacianEigenmaps.h
Expand Up @@ -64,7 +64,7 @@ class CLaplacianEigenmaps: public CEmbeddingConverter
* @param distance to use for embedding
* @param embedding features
*/
virtual CSimpleFeatures<float64_t>* embed(CDistance* distance);
virtual CSimpleFeatures<float64_t>* embed_distance(CDistance* distance);

/** setter for K parameter
* @param k k value
Expand Down

0 comments on commit 0d22945

Please sign in to comment.