graphclust.manifold.SammonMapping#

class graphclust.manifold.SammonMapping(n_components=2, *, dissimilarity='euclidean', max_iter=500, tol=1e-09, init='pca', random_state=None)[source]#

Bases: _Mapper

Sammon’s nonlinear mapping (1969).

Minimizes \(E=\frac{1}{\sum_{i<j}d^*_{ij}}\sum_{i<j}\frac{(d^*_{ij}-d_{ij})^2}{d^*_{ij}}\) with Sammon’s pseudo-Newton steps (gradient divided by the absolute diagonal of the Hessian) and step halving when the stress increases. Small distances get large weights, so local structure is preserved better than by metric MDS.