graphclust.manifold.LocalityPreservingProjection#
- class graphclust.manifold.LocalityPreservingProjection(n_components=2, *, k=10, t=None, reg=1e-08)[source]#
Bases:
_MapperLocality preserving projections (He and Niyogi 2003): a linear map that keeps neighbors close.
With heat-kernel weights \(w_{ij}=e^{-\|\mathbf{x}_i-\mathbf{x}_j\|^2/t}\) on the symmetric
k-NN graph, \(\mathbf{L}=\mathbf{D}-\mathbf{W}\), the projection directions solve \(\mathbf{X}^T\mathbf{L}\mathbf{X}\mathbf{a}=\lambda\mathbf{X}^T\mathbf{D}\mathbf{X}\mathbf{a}\) for the smallest eigenvalues. Being linear, it projects new samples withtransform.t=Noneuses the mean squared edge length.