public class IsoMap extends Object
To be specific, the classical MDS performs low-dimensional embedding based on the pairwise distance between data points, which is generally measured using straight-line Euclidean distance. Isomap is distinguished by its use of the geodesic distance induced by a neighborhood graph embedded in the classical scaling. This is done to incorporate manifold structure in the resulting embedding. Isomap defines the geodesic distance to be the sum of edge weights along the shortest path between two nodes. The top n eigenvectors of the geodesic distance matrix, represent the coordinates in the new n-dimensional Euclidean space.
The connectivity of each data point in the neighborhood graph is defined as its nearest k Euclidean neighbors in the high-dimensional space. This step is vulnerable to "short-circuit errors" if k is too large with respect to the manifold structure or if noise in the data moves the points slightly off the manifold. Even a single short-circuit error can alter many entries in the geodesic distance matrix, which in turn can lead to a drastically different (and incorrect) low-dimensional embedding. Conversely, if k is too small, the neighborhood graph may become too sparse to approximate geodesic paths accurately.
Constructor and Description |
---|
IsoMap(double[][] data,
int d,
int k)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
getCoordinates()
Returns the coordinates of projected data.
|
int[] |
getIndex()
Returns the original sample index.
|
Graph |
getNearestNeighborGraph()
Returns the nearest neighbor graph.
|
public IsoMap(double[][] data, int d, int k)
data
- the dataset.d
- the dimension of the manifold.k
- k-nearest neighbor.public int[] getIndex()
public double[][] getCoordinates()
public Graph getNearestNeighborGraph()
Copyright © 2015. All rights reserved.