hatvis.layout.classical_mds#

hatvis.layout.classical_mds(D, dim=2)[source]#

Classical (Torgerson) multidimensional scaling.

\(\mathbf{G}=-\tfrac12\mathbf{J}\boldsymbol{\Delta}^{(2)}\mathbf{J}\) with the centering matrix \(\mathbf{J}=\mathbf{I}-\tfrac1n\mathbf{1}\mathbf{1}^\mathsf{T}\); the configuration is \(\mathbf{Y}=\mathbf{U}_d\boldsymbol{\Lambda}_d^{1/2}\) from the \(d\) largest eigenpairs. Negative eigenvalues (non-Euclidean dissimilarities) are clipped to zero.

Examples using hatvis.layout.classical_mds#

The HAT-VIS pipeline step by step

The HAT-VIS pipeline step by step