library(RayleighSelection)
data("mnist")
library(dimRed) leim <- LaplacianEigenmaps() mnist_top <- mnist[apply(mnist, 1, var) > 10000,] emb <- leim@fun(as(t(mnist_top), "dimRedData"), leim@stdpars)
library(TDAmapper) mnist_distances <- (1.0 - cor(mnist_top)) m2 <- mapper2D(distance_matrix = mnist_distances, filter_values = list(emb@data@data[,1], emb@data@data[,2]), num_intervals = c(30,30), percent_overlap = 35, num_bins_when_clustering = 10);
gg <- nerve_complex(m2$points_in_vertex)
rayleigh_selection(gg, mnist[301:305,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.