graphclust.metrics#
Quality of low-dimensional maps.
- Distance preservation
- Neighborhood preservation
trustworthiness_continuity()(Venna and Kaski 2001),coranking_matrix()and the rank-based curvesqnx_curve(),rnx_curve(),lcmc_curve()with the scalar summaryauc_rnx()(Lee and Verleysen 2009; Lee, Peluffo-Ordóñez and Verleysen 2015).- Map topology
All functions accept data matrices or, with precomputed=True, distance
matrices, so that graph (geodesic) distances can serve as the reference in
the input space.
Stress, trustworthiness, continuity and the co-ranking framework.
Functions#
|
Area under the \(R_{NX}(K)\) curve with logarithmic K axis, \(\sum_K R_{NX}(K)/K\,/\sum_K 1/K\). |
|
Co-ranking matrix \(\mathbf{Q}\) (Lee and Verleysen 2009). |
|
Local continuity meta-criterion \(\mathrm{LCMC}(K)=Q_{NX}(K)-K/(N-1)\) (Chen and Buja 2009). |
|
All distance- and neighborhood-preservation measures of a map in one dictionary. |
|
Normalized metric MDS stress \(\sum_{i<j}(d^*_{ij}-d_{ij})^2/\sum_{i<j}d^{*2}_{ij}\). |
|
\(Q_{NX}(K)=\frac{1}{KN}\sum_{h,l\le K}Q_{hl}\), the average overlap of the K-ary neighborhoods, \(K=1..N-2\). |
|
Residual variance \(1-R^2(\mathbf{D}^*_X,\mathbf{D}_Y)\) (Tenenbaum et al. 2000). |
|
\(R_{NX}(K)=\frac{(N-1)Q_{NX}(K)-K}{N-1-K}\): neighborhood preservation rescaled so that a random map scores 0. |
|
Sammon stress \(E_S=\frac{1}{\sum_{i<j}d^*_{ij}}\sum_{i<j}\frac{(d^*_{ij}-d_{ij})^2}{d^*_{ij}}\). |
|
Share of samples whose two nearest nodes are not adjacent in the map graph (Kiviluoto 1996). |
|
Topographic product of Bauer and Pawelzik (1992) between node vectors and their map positions. |
|
Trustworthiness \(M_1(k)\) and continuity \(M_2(k)\) (Venna and Kaski 2001). |