Package smile.manifold
Class LaplacianEigenmap
java.lang.Object
smile.manifold.LaplacianEigenmap
Laplacian Eigenmaps. Using the notion of the Laplacian of the nearest
neighbor adjacency graph, Laplacian Eigenmaps computes a low dimensional
representation of the dataset that optimally preserves local neighborhood
information in a certain sense. The representation map generated by the
algorithm may be viewed as a discrete approximation to a continuous map
that naturally arises from the geometry of the manifold.
The locality preserving character of the Laplacian Eigenmaps algorithm makes it relatively insensitive to outliers and noise. It is also not prone to "short-circuiting" as only the local distances are used.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Laplacian Eigenmaps hyperparameters. -
Method Summary
Modifier and TypeMethodDescriptionstatic double[][]
fit
(double[][] data, LaplacianEigenmap.Options options) Laplacian Eigenmaps with Gaussian kernel.static double[][]
fit
(NearestNeighborGraph nng, LaplacianEigenmap.Options options) Laplacian Eigenmaps with Gaussian kernel.static <T> double[][]
fit
(T[] data, Distance<T> distance, LaplacianEigenmap.Options options) Laplacian Eigenmaps with discrete weights.
-
Method Details
-
fit
Laplacian Eigenmaps with Gaussian kernel.- Parameters:
data
- the input data.options
- the hyperparameters.- Returns:
- the embedding coordinates.
-
fit
Laplacian Eigenmaps with discrete weights.- Type Parameters:
T
- the data type of points.- Parameters:
data
- the input data.distance
- the distance function.options
- the hyperparameters.- Returns:
- the embedding coordinates.
-
fit
Laplacian Eigenmaps with Gaussian kernel.- Parameters:
nng
- the k-nearest neighbor graph.options
- the hyperparameters.- Returns:
- the embedding coordinates.
-