Description Usage Arguments Details Value References Examples
View source: R/Laplacian_Eigenmaps.R
Laplacian Eigenmap
1 | Laplacian_Eigenmaps(X, k, d)
|
X |
N x D matrix (N samples, D features). |
k |
integer; Number of nearest neighbor. |
d |
integer; The target dimension. |
Matlab codes were written by Belkin & Niyogi (2001) and extracted from Todd Wittman's MANI: Manifold Learning Toolkit.
a list of two objects. The first is the projected data (which are eigenvectors) and the second is the corresponding eigenvalues.
Belkin, M., & Niyogi, P. (2001, December). Laplacian Eigenmaps and Spectral Techniques for Embedding and Clustering. In NIPS (Vol. 14, pp. 585-591).
MANI: Manifold Learning Toolkit - http://macs.citadel.edu/wittman/research.html
1 2 3 4 5 6 | #Simulate data
sim_data <- swiss_roll(N = 600)
library(plotly)
p1 <- plotly_3D(sim_data); p1
LE_data <- Laplacian_Eigenmaps(sim_data$data, k = 8, d = 2)
p2 <- plotly_2D(LE_data$eigenvectors, color = sim_data$colors); p2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.