sklearn.manifold.locally_linear_embedding(X, n_neighbors, n_components, reg=0.001, eigen_solver=’auto’, tol=1e-06, max_iter=100, method=’standard’, hessian_tol=0.0001, modified_tol=1e-12, random_state=None, n_jobs=1)
[source]
Perform a Locally Linear Embedding analysis on the data.
Read more in the User Guide.
Parameters: |
X : {array-like, sparse matrix, BallTree, KDTree, NearestNeighbors} Sample data, shape = (n_samples, n_features), in the form of a numpy array, sparse array, precomputed tree, or NearestNeighbors object. n_neighbors : integer number of neighbors to consider for each point. n_components : integer number of coordinates for the manifold. reg : float regularization constant, multiplies the trace of the local covariance matrix of the distances. eigen_solver : string, {‘auto’, ‘arpack’, ‘dense’} auto : algorithm will attempt to choose the best method for input data
tol : float, optional Tolerance for ‘arpack’ method Not used if eigen_solver==’dense’. max_iter : integer maximum number of iterations for the arpack solver. method : {‘standard’, ‘hessian’, ‘modified’, ‘ltsa’}
hessian_tol : float, optional Tolerance for Hessian eigenmapping method. Only used if method == ‘hessian’ modified_tol : float, optional Tolerance for modified LLE method. Only used if method == ‘modified’ random_state : int, RandomState instance or None, optional (default=None) If int, random_state is the seed used by the random number generator; If RandomState instance, random_state is the random number generator; If None, the random number generator is the RandomState instance used by n_jobs : int, optional (default = 1) The number of parallel jobs to run for neighbors search. If |
---|---|
Returns: |
Y : array-like, shape [n_samples, n_components] Embedding vectors. squared_error : float Reconstruction error for the embedding vectors. Equivalent to |
[R193] |
(1, 2) Roweis, S. & Saul, L. Nonlinear dimensionality reduction by locally linear embedding. Science 290:2323 (2000).
|
[R194] |
(1, 2) Donoho, D. & Grimes, C. Hessian eigenmaps: Locally linear embedding techniques for high-dimensional data. Proc Natl Acad Sci U S A. 100:5591 (2003).
|
[R195] |
(1, 2) Zhang, Z. & Wang, J. MLLE: Modified Locally Linear Embedding Using Multiple Weights. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.70.382
|
[R196] |
(1, 2) Zhang, Z. & Zha, H. Principal manifolds and nonlinear dimensionality reduction via tangent space alignment. Journal of Shanghai Univ. 8:406 (2004)
|
sklearn.manifold.locally_linear_embedding
© 2007–2017 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.manifold.locally_linear_embedding.html