graphclust.manifold.DiffusionMap#

class graphclust.manifold.DiffusionMap(n_components=2, *, k=10, epsilon=None, alpha=1.0, t=1)[source]#

Bases: _Mapper

Diffusion maps (Coifman and Lafon 2006).

Gaussian kernel with bandwidth \(\varepsilon\) (default: median squared distance to the k-th neighbor), density normalization with exponent alpha (1 gives the Laplace–Beltrami operator, independent of the sampling density), row-stochastic Markov matrix \(\mathbf{P}\) and the embedding \(\lambda_l^t\boldsymbol{\psi}_l\) of its non-trivial eigenvectors after t diffusion steps. Distances in the map approximate diffusion distances on the data graph.